metalog: Don't install to/use /var/run.
This commit is contained in:
parent
2790e61d4d
commit
564d70f398
1 changed files with 22 additions and 22 deletions
|
@ -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 $?
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue