If you'd like to start subversion automatically from init.d, you can do the following
pskill svnserve
cd /etc/init.d/ wget http://www.soderlind.no/download/svnserve.txt mv svnserve.txt svnserve chmod 755 svnserve
The “stop” functionality of the above script is broken, follow these steps to fix it:
# update the host and repository HOST=<IP or domain> REPOSITORY=/var/svn # or another path if you like #move the line PIDFILE before DAEMON_ARGS PIDFILE=/var/run/$NAME.pid DAEMON_ARGS="-d --pid-file $PIDFILE --listen-host $HOST --listen-port $PORT -r $REPOSITORY" #note that I added --pid-file $PIDFILE to make sure svnserve writes #his PID to the correct location (so stop/restart knows where to find it)
update-rc.d svnserve defaults
/etc/init.d/svnserve start
The next time you restart your server, subversion will start automatically