From f5713f6a2bf30bbb85c7cefd23cb821659dbda0f Mon Sep 17 00:00:00 2001 From: hasufell Date: Sun, 9 Aug 2015 20:01:14 +0200 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- init.d/._cfg0000_svnserve | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 init.d/._cfg0000_svnserve diff --git a/init.d/._cfg0000_svnserve b/init.d/._cfg0000_svnserve new file mode 100755 index 0000000..6d3a080 --- /dev/null +++ b/init.d/._cfg0000_svnserve @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +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}" + +depend() { + need net +} + +start_pre() { + # Ensure that we run from a readable working dir, and that we do not + # lock filesystems when being run from such a location. + cd / +}