X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=monit-cn%2Fmysqld.conf;fp=monit-cn%2Fmysqld.conf;h=af671e231ee1cddbeb7f48fc8b6a8b3fff51c18e;hb=ddff8b45ab496434fe4e4b510f3b364d32c6bb52;hp=857f4d99cc43502d5d6beb9dac58ea6587a03a43;hpb=2d8499aec085db578ddf5b422f21ff356ee66391;p=monit-cn.git diff --git a/monit-cn/mysqld.conf b/monit-cn/mysqld.conf index 857f4d9..af671e2 100644 --- a/monit-cn/mysqld.conf +++ b/monit-cn/mysqld.conf @@ -3,6 +3,9 @@ check process mysql with pidfile "/var/run/mysqld/mysqld.pid" start program = "/etc/init.d/mysql start" stop program = "/etc/init.d/mysql stop" - if failed host 127.0.0.1 port 3306 protocol mysql + #if failed host 127.0.0.1 port 3306 protocol mysql + # with timeout 10 seconds + # then restart + if failed host 127.0.0.1 port 3306 type tcp with timeout 10 seconds then restart