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"
PIDFILE=/var/run/metalog.pid
PIDFILE=/run/metalog.pid
depend() {
need localmount
use clock hostname
after bootmisc
provide logger
need localmount
use clock hostname
after bootmisc
provide logger
}
start() {
ebegin "Starting metalog"
start-stop-daemon --start --exec /usr/sbin/metalog \
--pidfile "${PIDFILE}" \
-- --daemonize --pidfile="${PIDFILE}" ${METALOG_OPTS}
eend $?
ebegin "Starting metalog"
start-stop-daemon --start --exec /usr/sbin/metalog \
--pidfile "${PIDFILE}" \
-- --daemonize --pidfile="${PIDFILE}" ${METALOG_OPTS}
eend $?
}
stop() {
ebegin "Stopping metalog"
start-stop-daemon --stop --exec /usr/sbin/metalog \
--pidfile "${PIDFILE}"
eend $?
ebegin "Stopping metalog"
start-stop-daemon --stop --exec /usr/sbin/metalog \
--pidfile "${PIDFILE}"
eend $?
}
buffer() {
ebegin "Enabling log buffering"
start-stop-daemon --stop --oknodo --signal USR2 \
--exec /usr/sbin/metalog --pidfile "${PIDFILE}"
eend $?
ebegin "Enabling log buffering"
start-stop-daemon --stop --oknodo --signal USR2 \
--exec /usr/sbin/metalog --pidfile "${PIDFILE}"
eend $?
}
unbuffer() {
ebegin "Disabling log buffering"
start-stop-daemon --stop --oknodo --signal USR1 \
--exec /usr/sbin/metalog --pidfile "${PIDFILE}"
eend $?
ebegin "Disabling log buffering"
start-stop-daemon --stop --oknodo --signal USR1 \
--exec /usr/sbin/metalog --pidfile "${PIDFILE}"
eend $?
}