I'm setting up an old iMac running OS X for use as a Subversion serve.
I'll
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
offer
suggestions/tips.
I've set up a separate user, "svnuser", under which to run the server,
and
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
./etc/rc.common
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
restart.
Question 2: Is the use of sudo in StartService the best way to run
svnserve
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
should
have access to all projects, and others will have access on a
per-project
basis. Is there any way to get svnserve to look at both a
repository-specific
and a global passwords file? (My guess is not, but I've missed seeing
things
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
of
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