2015-02-27 00:58:55 +00:00
|
|
|
#!/sbin/runscript
|
2015-07-31 00:55:23 +00:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2015-02-27 00:58:55 +00:00
|
|
|
# Distributed under the terms of the GNU General Public License, v2 or later
|
2015-08-16 17:20:11 +00:00
|
|
|
# $Id$
|
2015-07-31 00:55:23 +00:00
|
|
|
|
|
|
|
description="svn server"
|
|
|
|
pidfile="/var/run/svnserve.pid"
|
|
|
|
command="/usr/bin/svnserve"
|
|
|
|
command_args="--foreground --daemon ${SVNSERVE_OPTS:---root=/var/svn}"
|
|
|
|
command_background="true"
|
|
|
|
start_stop_daemon_args="-u ${SVNSERVE_USER:-svn} -g ${SVNSERVE_GROUP:-svnusers}"
|
2015-02-27 00:58:55 +00:00
|
|
|
|
|
|
|
depend() {
|
|
|
|
need net
|
|
|
|
}
|
|
|
|
|
2015-07-31 00:55:23 +00:00
|
|
|
start_pre() {
|
2015-02-27 00:58:55 +00:00
|
|
|
# Ensure that we run from a readable working dir, and that we do not
|
|
|
|
# lock filesystems when being run from such a location.
|
|
|
|
cd /
|
|
|
|
}
|