[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Init script for launching svnserve?

From: S.H.Mohanjith <moha_at_mohanjith.net>
Date: 2007-07-28 20:31:43 CEST

Brad Cox wrote:
> Could someone please post an init.d script for launching svnserve at
> boot time (linux fedora)? Ideally with the usual start/stop/check
> options?
> Thanks! I'd appreciate it.
> --

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org


I have attached an Init script for subversion (I put it in an archive
to make sure mail servers don't choke on it by any chance).

The script should be placed in /etc/init.d/(You can extract the archive
at the root directory).

        $ cd /
        $ tar -xjf /root/etc.tar.bz2

You could use the script to start, stop, restart, condrestart the
svnserve as a daemon and also check the status of the daemon. It will
use a pid file to store pid in order to kill the svnserve daemon.

This was tested on fc6 running kernel 2.6.20-1.2962.fc6. Subversion
1.4.2 (subversion-1.4.2-2.fc6).

Init script is something that I missed in svnserve. I use a local svn
servers for my personal projects and it was annoying to start the
service everytime I had shutdown the machine. Also I didn't want to
just add it such that it starts at the startup without init.

I think this is just what you are looking for.

To add this as a service run the following at the bash as root after
copying the files in the archive.

        $ /sbin/chkconfig --add svnserve

I didn't get the chance to test on many distros. :-(
I would like to correct any portability issues, let me know if there are

Please let me know if there are any other issues in the Init script as well.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Sat Jul 28 20:30:40 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.