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???
Automatically running SVNserve on boot
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Automatically running SVNserve on boot
You can write a script that switches user and then calls the daemon you want to run
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.
Code: Select all
sudo -u SVN /location/of/scriptRe: Automatically running SVNserve on boot
could you run it as a cron job using the @reboot command?
Personally not tried it myself but possibly something to look into
Personally not tried it myself but possibly something to look into