Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The documented methods of starting svnserve no longer work in Ubuntu 12.04 LTS.

Ref: https://help.ubuntu.com/community/Subversion

"inetd" scripts are obsolete. "xinetd" scripts are now nonstandard.

The suggested third-party upstart script at http://pelam.fi/published_sources/svnserve.conf

looks bogus. It has the line

exec /usr/bin/svnserve --foreground --daemon --config-file /etc/svnserve.conf --root /home/svn/

which uses an option "--config-file" not in the svnserve documentation, runs in the foreground (inappropriate for a daemon), and appears to run as root. Upstart runs everything as root by default. "A future release of Upstart will have native support for (not running as root)".

This should have been handled during Ubuntu packaging.

How do I work around this mess?

share|improve this question

1 Answer 1

I modified the upstart script to work on mine: sudo vim /etc/init/svnserve.conf

# svnserve - Subversion server

description     "Subversion server"

start on (local-filesystems and net-device-up IFACE=lo and started udev-finish)
stop on runlevel [06]

chdir /home/svn

respawn

respawn limit 2 3600

exec /usr/bin/svnserve --daemon --root /home/svn --log-file /var/log/svnserve.log

Then run sudo initctl reload-configuration

You can remove the "--log-file /var/log/svnserve.log" part when happy.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.