#!/bin/bash #%rlevels: 0:k 1:k 2:k 3:s 4:k 5:s 6:k #%start: 33 #%stop: 27 #deps #%needs: #%before: #%after: source /etc/sysconfig/rc source $rc_functions source /etc/conf.d/svnserve case "$1" in start) echo -e ${COLOREDSTAR}"Starting svnserve daemon ..." start-stop-daemon --start --quiet --background \ --make-pidfile --pidfile /var/run/svnserve.pid \ --exec /usr/bin/svnserve \ --chuid ${SVNSERVE_USER:-svnserve}:${SVNSERVE_GROUP:-svnserve} --\ --foreground --daemon ${SVNSERVE_OPTS:---root=/var/svn} evaluate_retval update_svcstatus $1 splash svc_started "$(basename $0)" 0 ;; stop) echo -e ${COLOREDSTAR}"Stopping svnserve daemon ..." start-stop-daemon --stop --quiet --pidfile /var/run/svnserve.pid evaluate_retval update_svcstatus $1 splash svc_stopped "$(basename $0)" 0 ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc svnserve ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 ;; esac