diff --git a/setup_monit.php b/setup_monit.php index 3744a63e5cc08ddb7fcec0997daf189bfb797942..2b48e0b229229e76c0cfeefedb5819de4317f2b5 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