Tuesday, January 12, 2010

Start svnserve at boot in Ubuntu

This post provides a very simple init script to get svnserve going at boot. In Slackware, I only had to make a script executable for it to run at boot; here you must use some update-rc.d magic:
  1. $ echo "svnserve -d --foreground -r /home/svn" \
        | sudo tee /etc/init.d/svnserve
  2. $ sudo chmod +x /etc/svnserve
  3. $ sudo update-rc.d svnserve defaults

1 comments:

nanaki said...

in arch i just add svnserve to the ordered list DAEMONS at the bottom of /etc/rc.conf :P