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
haven't been able to get it working. Feel free to post config files,
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),
following shell script to define starting, stopping, and restarting.
be put in /Library/StartupItems, to run every time the system boots, and
is as follows:
# Setup for startup scripts
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
ConsoleMessage "Can't stop Subversion server daemon."
ConsoleMessage "Can't restart Subversion server daemon."
Question 1: Is there a clean way to stop svnserve? I can't find
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,
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Tue May 25 01:12:46 2004