summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul de Vrieze <pauldv@gentoo.org>2005-08-25 13:59:48 +0000
committerPaul de Vrieze <pauldv@gentoo.org>2005-08-25 13:59:48 +0000
commit53b7a2191ecc3ae4bbf95ed4da42f52475c2ccaa (patch)
tree86f068b85bc9fdc0bacdc101f4272776607c630f /dev-util/subversion/files
parentadd ~ia64 #103250 (diff)
downloadgentoo-2-53b7a2191ecc3ae4bbf95ed4da42f52475c2ccaa.tar.gz
gentoo-2-53b7a2191ecc3ae4bbf95ed4da42f52475c2ccaa.tar.bz2
gentoo-2-53b7a2191ecc3ae4bbf95ed4da42f52475c2ccaa.zip
Change the svnserve init script's working dir to /
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'dev-util/subversion/files')
-rw-r--r--dev-util/subversion/files/svnserve.initd5
1 files changed, 4 insertions, 1 deletions
diff --git a/dev-util/subversion/files/svnserve.initd b/dev-util/subversion/files/svnserve.initd
index 7c43cc1ca83a..7b7c4c84416d 100644
--- a/dev-util/subversion/files/svnserve.initd
+++ b/dev-util/subversion/files/svnserve.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/dev-util/subversion/files/svnserve.initd,v 1.1 2004/11/12 18:48:59 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/subversion/files/svnserve.initd,v 1.2 2005/08/25 13:59:48 pauldv Exp $
depend() {
need net
@@ -9,6 +9,9 @@ depend() {
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 \
--chuid ${SVNSERVE_USER:-apache}:${SVNSERVE_GROUP:-apache} -- \