From 06d04fb73b5ca416b3bf8967d1c43de5ebd4f873 Mon Sep 17 00:00:00 2001 From: "Dr. Yves Kreis" Date: Fri, 8 Sep 2023 18:42:04 +0300 Subject: [PATCH] Monit does not start as times needs to be equal or higher to cycles --- setup_monit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup_monit.php b/setup_monit.php index 3744a63..2b48e0b 100644 --- a/setup_monit.php +++ b/setup_monit.php @@ -154,7 +154,7 @@ check file nginx_rc with path /etc/init.d/nginx start program = "/usr/bin/systemctl start mariadb" with timeout 60 seconds stop program = "/usr/bin/systemctl stop mariadb" if failed host 127.0.0.1 port 3306 protocol mysql then restart - if failed unixsocket /var/run/mysqld/mysqld.sock protocol mysql for 3 times within 2 cycles then restart + if failed unixsocket /var/run/mysqld/mysqld.sock protocol mysql for 3 times within 4 cycles then restart if 5 restarts within 5 cycles then timeout depend mysql_bin -- GitLab