CC-5123 Pypo: Redundant Pypopush happens after restart pypo service

-if does not exist does not work on pre 5.2 monit version
This commit is contained in:
Martin Konecny 2013-05-28 15:54:31 -04:00
parent 66bb1f6d93
commit 4c3d2b20db
1 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
set httpd port 2812
check process airtime-liquidsoap with pidfile "/var/run/airtime-liquidsoap.pid"
if does not exist for 3 cycles then restart
start program = "/etc/init.d/airtime-liquidsoap start" with timeout 5 seconds
stop program = "/etc/init.d/airtime-liquidsoap stop"
check process airtime-liquidsoap
with pidfile "/var/run/airtime-liquidsoap.pid"
start program = "/etc/init.d/airtime-liquidsoap start-with-monit" with timeout 5 seconds
stop program = "/etc/init.d/airtime-liquidsoap stop-with-monit"