summaryrefslogtreecommitdiff
path: root/dev-vcs/subversion/files/svnserve.initd2
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2015-01-29 20:25:48 +0200
committerBlackNoxis <steven.darklight@gmail.com>2015-01-29 20:25:48 +0200
commit78e8bf779a18148ef006060cc1948cc27283b736 (patch)
treeea9103bc2da417123effb8aa13e23108e0418cca /dev-vcs/subversion/files/svnserve.initd2
parent4de73543b5141b30474af77d6d33f5abf6ce8c79 (diff)
Added subversion ebuilds
Diffstat (limited to 'dev-vcs/subversion/files/svnserve.initd2')
-rw-r--r--dev-vcs/subversion/files/svnserve.initd226
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-vcs/subversion/files/svnserve.initd2 b/dev-vcs/subversion/files/svnserve.initd2
new file mode 100644
index 00000000..605a4e53
--- /dev/null
+++ b/dev-vcs/subversion/files/svnserve.initd2
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/subversion/files/svnserve.initd2,v 1.2 2012/01/14 19:46:34 tommy Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting svnserve"
+ # Ensure that we run from a readable working dir, and that we do not
+ # lock filesystems when being run from such a location.
+ cd /
+ start-stop-daemon --start --quiet --background --make-pidfile \
+ --pidfile /var/run/svnserve.pid --exec /usr/bin/svnserve \
+ --user ${SVNSERVE_USER:-apache} --group ${SVNSERVE_GROUP:-apache} -- \
+ --foreground --daemon ${SVNSERVE_OPTS:---root=/var/svn}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping svnserve"
+ start-stop-daemon --stop --quiet --pidfile /var/run/svnserve.pid
+ eend $?
+}