summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-09-23 03:15:23 +0000
committerMike Frysinger <vapier@gentoo.org>2011-09-23 03:15:23 +0000
commitc740984e8bfe99a7079b7c1e77fcc21bb63affde (patch)
treef78edcd72cfdf68f1cc923b9fdc0021035c65848 /app-admin/metalog/files
parentRemove laptop, glitz, cpufreq, battery from use.mask (diff)
downloadgentoo-2-c740984e8bfe99a7079b7c1e77fcc21bb63affde.tar.gz
gentoo-2-c740984e8bfe99a7079b7c1e77fcc21bb63affde.tar.bz2
gentoo-2-c740984e8bfe99a7079b7c1e77fcc21bb63affde.zip
Version bump.
(Portage version: 2.2.0_alpha59/cvs/Linux x86_64)
Diffstat (limited to 'app-admin/metalog/files')
-rwxr-xr-xapp-admin/metalog/files/metalog.initd22
1 files changed, 10 insertions, 12 deletions
diff --git a/app-admin/metalog/files/metalog.initd b/app-admin/metalog/files/metalog.initd
index 3f855c5a41a1..7f1d292827cf 100755
--- a/app-admin/metalog/files/metalog.initd
+++ b/app-admin/metalog/files/metalog.initd
@@ -1,9 +1,9 @@
#!/sbin/runscript
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2011 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.4 2009/01/02 07:56:34 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/metalog/files/metalog.initd,v 1.5 2011/09/23 03:15:23 vapier Exp $
-opts="buffer unbuffer"
+extra_started_commands="buffer unbuffer"
PIDFILE=/var/run/metalog.pid
@@ -14,31 +14,29 @@ depend() {
provide logger
}
+ssd() { start-stop-daemon --exec /usr/sbin/metalog --pidfile "${PIDFILE}" "$@" ; }
+
start() {
ebegin "Starting metalog"
- start-stop-daemon --start --exec /usr/sbin/metalog \
- --pidfile "${PIDFILE}" \
- -- --daemonize --pidfile="${PIDFILE}" ${METALOG_OPTS}
+ ssd --start -- \
+ --daemonize --pidfile="${PIDFILE}" ${METALOG_OPTS}
eend $?
}
stop() {
ebegin "Stopping metalog"
- start-stop-daemon --stop --exec /usr/sbin/metalog \
- --pidfile "${PIDFILE}"
+ ssd --stop
eend $?
}
buffer() {
ebegin "Enabling log buffering"
- start-stop-daemon --stop --oknodo --signal USR2 \
- --exec /usr/sbin/metalog --pidfile "${PIDFILE}"
+ ssd --signal USR2
eend $?
}
unbuffer() {
ebegin "Disabling log buffering"
- start-stop-daemon --stop --oknodo --signal USR1 \
- --exec /usr/sbin/metalog --pidfile "${PIDFILE}"
+ ssd --signal USR1
eend $?
}