summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/apt-cacher-ng/files/initd')
-rw-r--r--net-misc/apt-cacher-ng/files/initd7
1 files changed, 4 insertions, 3 deletions
diff --git a/net-misc/apt-cacher-ng/files/initd b/net-misc/apt-cacher-ng/files/initd
index c7df24365095..00a869ee4425 100644
--- a/net-misc/apt-cacher-ng/files/initd
+++ b/net-misc/apt-cacher-ng/files/initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/files/initd,v 1.1 2011/05/24 21:48:33 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/files/initd,v 1.2 2012/08/20 00:32:23 jer Exp $
NAME="apt-cacher-ng"
DAEMON="/usr/sbin/$NAME"
@@ -16,8 +16,9 @@ depend() {
start() {
ebegin "Starting $NAME"
+ checkpath -d -m 0755 -o ${NAME}:${NAME} ${RUNDIR}
start-stop-daemon --start --exec $DAEMON \
- --chuid $NAME --group $NAME \
+ --user $NAME --group $NAME \
--pidfile $PIDFILE \
-- $DAEMON_OPTS
eend $?