CC-3206: Add ability to do Airtime upgrade without restarting liquidsoap
-done
This commit is contained in:
parent
9bbe1d14fa
commit
76fac6fbef
4 changed files with 31 additions and 13 deletions
|
@ -34,6 +34,14 @@ liquidsoap_stop () {
|
|||
rm -f $PIDFILE1
|
||||
}
|
||||
|
||||
pypo_stop () {
|
||||
monit unmonitor airtime-playout >/dev/null 2>&1
|
||||
|
||||
# Send TERM after 5 seconds, wait at most 30 seconds.
|
||||
start-stop-daemon --stop --oknodo --retry TERM/5/0/30 --quiet --pidfile $PIDFILE0
|
||||
rm -f $PIDFILE0
|
||||
}
|
||||
|
||||
start () {
|
||||
start-stop-daemon --start --background --quiet --chuid $USERID:$GROUPID --make-pidfile --pidfile $PIDFILE0 --startas $DAEMON0
|
||||
monit monitor airtime-playout >/dev/null 2>&1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue