[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Some questions on configuring a Subversion daemon under BSD (OS X, actually).

From: Kenneth McDonald <kenneth.m.mcdonald_at_sbcglobal.net>
Date: 2004-05-25 00:17:01 CEST

I'm setting up an old iMac running OS X for use as a Subversion serve.
be using svnserve -d. (Note: I would be happy to use svnserve -i
instead, but
haven't been able to get it working. Feel free to post config files,
scripts, etc.)
I have some questions about how to do certain things,
and the "best" way to do others, and would be grateful if people could

I've set up a separate user, "svnuser", under which to run the server,
in whose home account all repositories will be stored. I've also set up
a StartupItems folder (I believe this is an OS X only thing),
containing the
following shell script to define starting, stopping, and restarting.
This will
be put in /Library/StartupItems, to run every time the system boots, and
is as follows:

#! /bin/sh

# Setup for startup scripts

StartService() {
        ConsoleMessage "Starting Subversion server daemon with
/Users/svnuser/code as root of repository tree."
        sudo -u svnuser /opt/bin/svnserve -d -r /Users/svnuser/code

StopSevice() {
        ConsoleMessage "Can't stop Subversion server daemon."

RestartService() {
        ConsoleMessage "Can't restart Subversion server daemon."

Question 1: Is there a clean way to stop svnserve? I can't find
anything in
the Subversion book. I would like to be able to implement stop and

Question 2: Is the use of sudo in StartService the best way to run
as "svnuser"? I'm not familiar with conventions for running boot daemons
as particular users.

Question 3: I plan on having multiple small projects. A few people
have access to all projects, and others will have access on a
basis. Is there any way to get svnserve to look at both a
and a global passwords file? (My guess is not, but I've missed seeing
in the book before.) At the moment, my demands aren't complex enough
to make me want to use Apache.

Question 4: If svnserver crashes or otherwise dies, does the behaviour
OS X/BSD specify that a startup item will be automatically restarted? Or
do I need to do something else?

Many thanks for the help,
Ken McDonald

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 25 01:12:46 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.