r13: - add postgrey + asterisk
[monit-cn.git] / monit-cn / mysqld.conf
index 857f4d9..af671e2 100644 (file)
@@ -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