cc-2055: switch to init.d
-monit is now temporarily disabled when intentionally stopped a service
This commit is contained in:
parent
ec6db96025
commit
2f5a1c4df6
6 changed files with 31 additions and 4 deletions
|
@ -16,12 +16,15 @@ NAME=Airtime\ Show\ Recorder
|
|||
DAEMON=/usr/lib/airtime/show-recorder/airtime-show-recorder
|
||||
PIDFILE=/var/run/airtime-show-recorder.pid
|
||||
|
||||
start () {
|
||||
start () {
|
||||
monit monitor airtime-show-recorder
|
||||
start-stop-daemon --start --background --quiet --chuid $USERID:$GROUPID --make-pidfile --pidfile $PIDFILE --startas $DAEMON
|
||||
}
|
||||
|
||||
stop () {
|
||||
# Send TERM after 5 seconds, wait at most 30 seconds.
|
||||
|
||||
monit unmonitor airtime-show-recorder
|
||||
start-stop-daemon --stop --oknodo --retry TERM/5/0/30 --quiet --pidfile $PIDFILE
|
||||
rm -f $PIDFILE
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue