2009-05-04 19:59:21 +00:00
|
|
|
#!/sbin/runscript
|
|
|
|
|
|
|
|
extra_commands="buffer unbuffer"
|
|
|
|
command=/usr/sbin/metalog
|
|
|
|
pidfile=${metalog_pid:-/var/run/metalog.pid}
|
|
|
|
command_args="$metalog_flags --daemonize --pidfile $pidfile"
|
|
|
|
|
|
|
|
depend()
|
|
|
|
{
|
|
|
|
provide logger
|
|
|
|
need localmount
|
|
|
|
use clock hostname
|
|
|
|
after bootmisc
|
|
|
|
}
|
|
|
|
|
|
|
|
buffer()
|
|
|
|
{
|
|
|
|
ebegin "Enabling log buffering"
|
2009-09-18 14:05:18 +00:00
|
|
|
start-stop-daemon --signal USR1 --pidfile $pidfile
|
2009-05-04 19:59:21 +00:00
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
unbuffer()
|
|
|
|
{
|
|
|
|
ebegin "Disabling log buffering"
|
2009-09-18 14:05:18 +00:00
|
|
|
start-stop-daemon --signal USR2 --pidfile $pidfile
|
2009-05-04 19:59:21 +00:00
|
|
|
eend $?
|
|
|
|
}
|