monitore fcgiwrap par regex sous jessie

Aveu de faiblesse
This commit is contained in:
Daniel STAN 2015-06-25 13:52:25 +02:00
parent 794543edf1
commit 120d67dd52

View file

@ -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')