rendered paste body#!/bin/sh -e## svnserve - brings up the svn server so anonymous users# can access svn## Get LSB functions. /lib/lsb/init-functions. /etc/default/rcSSVNSERVE=/usr/bin/svnserveSVN_USER=www-dataSVN_GROUP=www-dataSVN_REPO_PATH=/var/svn/# Check that the package is still installed[ -x $SVNSERVE ] || exit 0;case "$1" in start) log_begin_msg "Starting svnserve..." umask 002 if start-stop-daemon --start --chuid $SVN_USER:$SVN_GROUP --exec $SVNSERVE -- -d -r $SVN_REPO_PATH; then log_end_msg 0 else log_end_msg $? fi ;; stop) log_begin_msg "Stopping svnserve..." if start-stop-daemon --stop --exec $SVNSERVE; then log_end_msg 0 else log_end_msg $? fi ;; restart|force-reload) "$0" stop && "$0" start ;; *) echo "Usage: /etc/init.d/svnserve {start|stop|restart|force-reload}" exit 1 ;;esacexit 0