summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2009-04-14 17:13:13 +0000
committerRaúl Porcel <armin76@gentoo.org>2009-04-14 17:13:13 +0000
commitcd4f626cfe5f596ffe6dff1c5fc91b1e51254d90 (patch)
tree4410d1e57333c84415ba645deaa1353ac61c1b1d /app-misc/uptimed/files
parentRemove old version. (diff)
downloadgentoo-2-cd4f626cfe5f596ffe6dff1c5fc91b1e51254d90.tar.gz
gentoo-2-cd4f626cfe5f596ffe6dff1c5fc91b1e51254d90.tar.bz2
gentoo-2-cd4f626cfe5f596ffe6dff1c5fc91b1e51254d90.zip
Fix init script on openrc, thanks to Peter Kerwien <peter at kerwien dot homeip dot net> for the fix, bug #266012
(Portage version: 2.1.6.7/cvs/Linux i686)
Diffstat (limited to 'app-misc/uptimed/files')
-rw-r--r--app-misc/uptimed/files/uptimed.init9
1 files changed, 5 insertions, 4 deletions
diff --git a/app-misc/uptimed/files/uptimed.init b/app-misc/uptimed/files/uptimed.init
index 378a8d8d0077..fe0a6e90971b 100644
--- a/app-misc/uptimed/files/uptimed.init
+++ b/app-misc/uptimed/files/uptimed.init
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/uptimed/files/uptimed.init,v 1.2 2009/02/20 20:03:21 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/uptimed/files/uptimed.init,v 1.3 2009/04/14 17:13:13 armin76 Exp $
# Copyright 2002 Sean Russell
@@ -10,14 +10,15 @@ PIDFILE="/var/run/uptimed/uptimed.pid"
start() {
ebegin "Starting uptimed"
start-stop-daemon --quiet --start --chuid uptimed \
- --exec /usr/sbin/uptimed -- -b
+ --exec /usr/sbin/uptimed --pidfile "${PIDFILE}" -- -b
start-stop-daemon --quiet --start --chuid uptimed \
- --exec /usr/sbin/uptimed -- -p ${PIDFILE}
+ --exec /usr/sbin/uptimed --pidfile "${PIDFILE}" \
+ -- -p ${PIDFILE}
eend $?
}
stop() {
ebegin "Stopping uptimed"
- start-stop-daemon --quiet --stop --user uptimed --pidfile ${PIDFILE}
+ start-stop-daemon --quiet --stop --user uptimed --pidfile "${PIDFILE}"
eend $?
}