From 66bb1f6d930913df1b236cc9ea39ad58ffea7369 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Tue, 28 May 2013 15:48:15 -0400 Subject: [PATCH] CC-5123 Pypo: Redundant Pypopush happens after restart pypo service -added timeout so that monit doesn't try to start Liquidsoap while it is already being restarted. --- python_apps/pypo/monit-pre530-airtime-liquidsoap.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_apps/pypo/monit-pre530-airtime-liquidsoap.cfg b/python_apps/pypo/monit-pre530-airtime-liquidsoap.cfg index 972edd46f..4b3bc7927 100644 --- a/python_apps/pypo/monit-pre530-airtime-liquidsoap.cfg +++ b/python_apps/pypo/monit-pre530-airtime-liquidsoap.cfg @@ -3,7 +3,7 @@ set httpd port 2812 - check process airtime-liquidsoap - with pidfile "/var/run/airtime-liquidsoap.pid" + 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"