configuration-templates – Blame information for rev 27
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
27 | office | 1 | ########################################################################### |
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
||
3 | ########################################################################### |
||
4 | |||
5 | check process mysql with pidfile /var/run/mysqld/mysqld.pid |
||
6 | group mysql |
||
7 | start program = "/etc/init.d/mysql start" |
||
8 | stop program = "/etc/init.d/mysql stop" |
||
9 | if failed host 127.0.0.1 port 3306 protocol mysql then restart |
||
10 | # if 5 restarts within 5 cycles then timeout |
||
11 | depends on mysql_bin |
||
12 | depends on mysql_rc |
||
13 | |||
14 | check file mysql_bin with path /usr/sbin/mysqld |
||
15 | group mysql |
||
16 | if failed checksum then unmonitor |
||
17 | if failed permission 755 then unmonitor |
||
18 | if failed uid root then unmonitor |
||
19 | if failed gid root then unmonitor |
||
20 | |||
21 | check file mysql_rc with path /etc/init.d/mysql |
||
22 | group mysql |
||
23 | if failed checksum then unmonitor |
||
24 | if failed permission 755 then unmonitor |
||
25 | if failed uid root then unmonitor |
||
26 | if failed gid root then unmonitor |