diff --git a/Python/etc/monit/services b/Python/etc/monit/services index e0a2b3d..295f59a 100644 --- a/Python/etc/monit/services +++ b/Python/etc/monit/services @@ -76,7 +76,14 @@ if has('nginx'): if has('php'): service(name='php5-fpm', extra=["if failed host localhost port 80 protocol http and request '/php_ping' timeout 20 seconds for 5 cycles then restart"]) if has('cgi'): - service(name='fcgiwrap', pidp='/var/run/fcgiwrap.pids') + if has('wheezy'): + service(name='fcgiwrap', pidp='/var/run/fcgiwrap.pids') + else: + out("""# fcgiwrap +check process fcgiwrap matching fcgiwrap + start program = "/etc/init.d/fcgiwrap start" + stop program = "/etc/init.d/fcgiwrap stop" + if 5 restarts within 5 cycles then timeout""") if has('radio'): service(None, name='radio-vlc', start_cmd = "/etc/init.d/radio start", stop_cmd = "/etc/init.d/radio stop", pidp='/tmp/multicast.pid')