af671e231ee1cddbeb7f48fc8b6a8b3fff51c18e
[monit-cn.git] / monit-cn / mysqld.conf
1 # mysql monit-cn template
2
3 check process mysql with pidfile "/var/run/mysqld/mysqld.pid"
4         start program = "/etc/init.d/mysql start"
5         stop program = "/etc/init.d/mysql stop"
6         #if failed host 127.0.0.1 port 3306 protocol mysql
7         #       with timeout 10 seconds
8         #       then restart
9         if failed host 127.0.0.1 port 3306 type tcp
10                 with timeout 10 seconds
11                 then restart