From 120d67dd52395e692c389cfd7747542ec23bd830 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Thu, 25 Jun 2015 13:52:25 +0200 Subject: [PATCH] monitore fcgiwrap par regex sous jessie Aveu de faiblesse --- Python/etc/monit/services | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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')