CC-2410: Clean up install process
-hiding a few more warnings.
This commit is contained in:
parent
de436486fb
commit
aa56344a29
6 changed files with 11 additions and 10 deletions
|
@ -17,14 +17,14 @@ DAEMON=/usr/lib/airtime/show-recorder/airtime-show-recorder
|
|||
PIDFILE=/var/run/airtime-show-recorder.pid
|
||||
|
||||
start () {
|
||||
monit monitor airtime-show-recorder
|
||||
monit monitor airtime-show-recorder >/dev/null 2>&1
|
||||
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
|
||||
monit unmonitor airtime-show-recorder >/dev/null 2>&1
|
||||
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