diff options
author | Roy Marples <uberlord@gentoo.org> | 2007-02-23 11:17:38 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2007-02-23 11:17:38 +0000 |
commit | 99026b37fea1092c9097adb9976c16ea994e089c (patch) | |
tree | fc59d0293e5503129ce0e26ea110d0d36f3a5819 /app-admin/metalog | |
parent | stable x86; bug 168069 (diff) | |
download | gentoo-2-99026b37fea1092c9097adb9976c16ea994e089c.tar.gz gentoo-2-99026b37fea1092c9097adb9976c16ea994e089c.tar.bz2 gentoo-2-99026b37fea1092c9097adb9976c16ea994e089c.zip |
Use start-stop-daemon correctly.
(Portage version: 2.1.2-r10)
Diffstat (limited to 'app-admin/metalog')
-rw-r--r-- | app-admin/metalog/ChangeLog | 5 | ||||
-rwxr-xr-x | app-admin/metalog/files/metalog.initd | 19 |
2 files changed, 15 insertions, 9 deletions
diff --git a/app-admin/metalog/ChangeLog b/app-admin/metalog/ChangeLog index 39c2ee586437..4c6f67ec6b84 100644 --- a/app-admin/metalog/ChangeLog +++ b/app-admin/metalog/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-admin/metalog # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/metalog/ChangeLog,v 1.58 2007/02/13 00:33:41 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/metalog/ChangeLog,v 1.59 2007/02/23 11:17:38 uberlord Exp $ + + 23 Feb 2007; Roy Marples <uberlord@gentoo.org> files/metalog.initd: + Use start-stop-daemon correctly. *metalog-0.8_rc4 (13 Feb 2007) diff --git a/app-admin/metalog/files/metalog.initd b/app-admin/metalog/files/metalog.initd index 57d744053511..ed8949379c61 100755 --- a/app-admin/metalog/files/metalog.initd +++ b/app-admin/metalog/files/metalog.initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/metalog/files/metalog.initd,v 1.2 2007/01/27 12:11:52 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/metalog/files/metalog.initd,v 1.3 2007/02/23 11:17:38 uberlord Exp $ opts="buffer unbuffer" @@ -16,27 +16,30 @@ depend() { start() { ebegin "Starting metalog" - /usr/sbin/metalog \ - --daemonize \ - --pidfile=${PIDFILE} \ - ${METALOG_OPTS} + start-stop-daemon --start --exec /usr/sbin/metalog \ + --pidfile "${PIDFILE}" \ + -- --daemonize --pidfile="${PIDFILE}" ${METALOG_OPTS} eend $? } stop() { ebegin "Stopping metalog" - start-stop-daemon --stop --quiet --pidfile ${PIDFILE} + start-stop-daemon --stop --exec /usr/sbin/metalog \ + --pidfile "${PIDFILE}" eend $? } buffer() { ebegin "Enabling log buffering" - kill -USR2 $(<${PIDFILE}) + start-stop-daemon --stop --oknodo --signal USR2 \ + --exec /usr/sbin/metalog --pidfile "${PIDFILE}" + eend $? eend $? } unbuffer() { ebegin "Disabling log buffering" - kill -USR1 $(<${PIDFILE}) + start-stop-daemon --stop --oknodo --signal USR1 \ + --exec /usr/sbin/metalog --pidfile "${PIDFILE}" eend $? } |