diff --git a/Python/etc/monit/services b/Python/etc/monit/services index ee6a237..ea8cb03 100644 --- a/Python/etc/monit/services +++ b/Python/etc/monit/services @@ -56,14 +56,15 @@ service("apache", name="apache2", extra=[ has("http-server") and "if failed host localhost port 80 protocol http timeout 30 seconds then restart", has("https-server") and "if failed host localhost port 443 type tcpssl protocol http timeout 30 seconds then restart", - has("intranet-server") and "if failed host intranet.crans.org port 443 type tcpssl protocol http timeout 30 seconds then restart", "if cpu is greater than 60% for 2 cycles then alert", "if cpu > 80% for 5 cycles then restart", has("users") and "if totalmem > 4 GB for 5 cycles then restart" or "if totalmem > 500.0 MB for 5 cycles then restart", "if children > 250 then restart", "if loadavg(5min) greater than 10 for 8 cycles then restart", ], - max_restart=3) + max_restart=3, + pidf='apache2/apache2' if not has('wheezy') else 'apache2', + ) service('nginx')