CC-4993: airtime-check-system reports airtime-liquidsoap as down
-fixed
This commit is contained in:
parent
8e314477c7
commit
7ca178295f
7 changed files with 11 additions and 27 deletions
|
@ -17,15 +17,7 @@ DAEMON=/usr/lib/airtime/pypo/bin/airtime-liquidsoap
|
|||
PIDFILE=/var/run/airtime-liquidsoap.pid
|
||||
|
||||
start () {
|
||||
chown pypo:pypo /var/log/airtime/pypo
|
||||
chown pypo:pypo /var/log/airtime/pypo-liquidsoap
|
||||
|
||||
touch /var/run/airtime-liquidsoap.pid
|
||||
chown pypo:pypo /var/run/airtime-liquidsoap.pid
|
||||
|
||||
start-stop-daemon --start --quiet --chuid $USERID:$GROUPID \
|
||||
--pidfile /var/run/airtime-liquidsoap.pid --nicelevel -15 --startas $DAEMON
|
||||
|
||||
start_no_monit
|
||||
monit monitor airtime-liquidsoap >/dev/null 2>&1
|
||||
}
|
||||
|
||||
|
@ -39,7 +31,14 @@ stop () {
|
|||
}
|
||||
|
||||
start_no_monit() {
|
||||
start-stop-daemon --start --background --quiet --chuid $USERID:$USERID --make-pidfile --pidfile $PIDFILE --startas $DAEMON
|
||||
chown pypo:pypo /var/log/airtime/pypo
|
||||
chown pypo:pypo /var/log/airtime/pypo-liquidsoap
|
||||
|
||||
touch /var/run/airtime-liquidsoap.pid
|
||||
chown pypo:pypo /var/run/airtime-liquidsoap.pid
|
||||
|
||||
start-stop-daemon --start --quiet --chuid $USERID:$GROUPID \
|
||||
--pidfile /var/run/airtime-liquidsoap.pid --nicelevel -15 --startas $DAEMON
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -12,5 +12,5 @@
|
|||
if failed host localhost port 1234
|
||||
send "version\r\nexit\r\n"
|
||||
expect "Liquidsoap"
|
||||
retry 3
|
||||
with timeout 2 seconds retry 3 for 2 cycles
|
||||
then restart
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue