From b62586b89387aee926fd84e4afaa4d26d540b404 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Sat, 19 Oct 2024 14:57:51 +0200 Subject: [PATCH] Restart via monit in case of access problems --- templates/monit.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/monit.conf b/templates/monit.conf index 1059a20..77e19e7 100644 --- a/templates/monit.conf +++ b/templates/monit.conf @@ -8,4 +8,5 @@ check process apache with pidfile /run/apache2/apache2.pid if cpu > 80% for 5 cycles then restart if totalmem > {{ apache.check_memory_limit | default(apache_check_memory_limit) }} for 3 cycles then restart if children > 250 then restart + if failed host 127.0.0.1 port 80 protocol http for 3 cycles then restart if 3 restarts within 5 cycles then timeout