Page 1 of 1

Automatically running SVNserve on boot

Posted: Thu Mar 26, 2009 10:47 am
by alex.barylski
EDIT | Running as daemon not inetd

I have googled and it seems the only solution under *nix is to manually add the entry to the /etc/rc.local???

The only problem is, SVN suggests running svnserve as a user that wholly owns the repo's -- makes sense.

I have a user and group SVN but running the daemon from /etc/rc.local -- wouldn't this run SVN as root? How do I run SVNserve at bootup under the user SVN???

Re: Automatically running SVNserve on boot

Posted: Thu Mar 26, 2009 11:36 am
by waylon999
You can write a script that switches user and then calls the daemon you want to run

Code: Select all

sudo -u SVN /location/of/script
Something like that should run the script as a different user. Which linux are you using? I am used to Ubuntu, so I would write a bash script and put it in /etc/init.d.

Re: Automatically running SVNserve on boot

Posted: Sun May 10, 2009 2:24 pm
by wispa
could you run it as a cron job using the @reboot command?

Personally not tried it myself but possibly something to look into