6
# Default-Start: 2 3 4 5
8
# Short-Description: execute action when processes absent for some time
11
# Author: Dustin Kirkland <kirkland@canonical.com>
16
PIDFILE=/var/run/$PKG.pid
18
test -x $DAEMON || exit 0
20
. /lib/lsb/init-functions
24
log_daemon_msg "Starting $PKG"
29
log_daemon_msg "Stopping $PKG"
30
killproc -p $PIDFILE $DAEMON
38
if status_of_proc -p $PIDFILE $DAEMON $PKG; then
39
log_begin_msg "Sending $PKG the 'now' signal"
40
kill -USR1 $(cat $PIDFILE)
45
status_of_proc -p $PIDFILE $DAEMON $PKG && exit 0 || exit $?
48
log_warning_msg "Usage: /etc/init.d/$PKG {start|stop|restart|force-reload|now|status}"