3 # svnserve This shell script takes care of starting and stopping svnserve.
5 # chkconfig: 2345 80 30
6 # description: svnserve is a subversion server
8 # processname: svnserve
12 # Source function library.
13 . /etc/rc.d/init.d/functions
15 # Source networking configuration.
16 . /etc/sysconfig/network
18 # Source svnserve configureation.
19 [ -f /etc/sysconfig/svnserve ] && . /etc/sysconfig/svnserve
21 # Check that networking is up.
22 if is_yes "${NETWORKING}"; then
23 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
24 msg_network_down svnserve
33 if [ -f /var/lock/subsys/svnserve ]; then
34 msg_already_running svnserve
39 daemon --user svn svnserve ${SVNSERVE_OPTIONS} -r ${SVNSERVE_PATH}
41 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/svnserve
46 if [ ! -f /var/lock/subsys/svnserve ]; then
47 msg_not_running svnserve
53 rm -f /var/lock/subsys/svnserve >/dev/null 2>&1
58 if [ ! -f /var/lock/subsys/svnserve ]; then
59 msg_not_running svnserve
69 # See how we were called.
92 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"