metalog: Don't install to/use /var/run.

This commit is contained in:
Wulf C. Krueger 2012-05-20 20:41:07 +02:00 committed by Daniel Mierswa
parent 2790e61d4d
commit 564d70f398

View file

@ -5,40 +5,40 @@
opts="buffer unbuffer" opts="buffer unbuffer"
PIDFILE=/var/run/metalog.pid PIDFILE=/run/metalog.pid
depend() { depend() {
need localmount need localmount
use clock hostname use clock hostname
after bootmisc after bootmisc
provide logger provide logger
} }
start() { start() {
ebegin "Starting metalog" ebegin "Starting metalog"
start-stop-daemon --start --exec /usr/sbin/metalog \ start-stop-daemon --start --exec /usr/sbin/metalog \
--pidfile "${PIDFILE}" \ --pidfile "${PIDFILE}" \
-- --daemonize --pidfile="${PIDFILE}" ${METALOG_OPTS} -- --daemonize --pidfile="${PIDFILE}" ${METALOG_OPTS}
eend $? eend $?
} }
stop() { stop() {
ebegin "Stopping metalog" ebegin "Stopping metalog"
start-stop-daemon --stop --exec /usr/sbin/metalog \ start-stop-daemon --stop --exec /usr/sbin/metalog \
--pidfile "${PIDFILE}" --pidfile "${PIDFILE}"
eend $? eend $?
} }
buffer() { buffer() {
ebegin "Enabling log buffering" ebegin "Enabling log buffering"
start-stop-daemon --stop --oknodo --signal USR2 \ start-stop-daemon --stop --oknodo --signal USR2 \
--exec /usr/sbin/metalog --pidfile "${PIDFILE}" --exec /usr/sbin/metalog --pidfile "${PIDFILE}"
eend $? eend $?
} }
unbuffer() { unbuffer() {
ebegin "Disabling log buffering" ebegin "Disabling log buffering"
start-stop-daemon --stop --oknodo --signal USR1 \ start-stop-daemon --stop --oknodo --signal USR1 \
--exec /usr/sbin/metalog --pidfile "${PIDFILE}" --exec /usr/sbin/metalog --pidfile "${PIDFILE}"
eend $? eend $?
} }