configuration-templates – Diff between revs 29 and 50
?pathlinks?
Rev 29 | Rev 50 | |||
---|---|---|---|---|
1 | ########################################################################### |
1 | ########################################################################### |
|
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
|
3 | ########################################################################### |
3 | ########################################################################### |
|
4 | |
4 | |
|
5 | check process pdns-recursor with pidfile /var/run/pdns_recursor.pid |
5 | check process pdns-recursor with pidfile /var/run/pdns_recursor.pid |
|
6 | group system |
6 | group system |
|
7 | group dns |
7 | group dns |
|
8 | group pdns-recursor |
8 | group pdns-recursor |
|
9 | start program = "/etc/init.d/pdns-recursor start" |
9 | start program = "/etc/init.d/pdns-recursor start" |
|
10 | stop program = "/etc/init.d/pdns-recursor stop" |
10 | stop program = "/etc/init.d/pdns-recursor stop" |
|
11 | if failed host 127.0.0.1 port 53 type udp protocol dns for 3 times within 4 cycles then restart |
11 | if failed host 127.0.0.1 port 53 type udp protocol dns for 3 times within 4 cycles then restart |
|
12 | if 5 restarts within 20 cycles then timeout |
12 | # if 5 restarts within 20 cycles then timeout |
|
13 | depend pdns-recursor_bin |
13 | depend pdns-recursor_bin |
|
14 | depend pdns-recursor_rc |
14 | depend pdns-recursor_rc |
|
15 | |
15 | |
|
16 | check file pdns-recursor_bin with path /usr/sbin/pdns_recursor |
16 | check file pdns-recursor_bin with path /usr/sbin/pdns_recursor |
|
17 | group pdns-recursor |
17 | group pdns-recursor |
|
18 | include /etc/monit/templates/rootbin |
18 | include /etc/monit/templates/rootbin |
|
19 | |
19 | |
|
20 | check file pdns-recursor_rc with path /etc/init.d/pdns-recursor |
20 | check file pdns-recursor_rc with path /etc/init.d/pdns-recursor |
|
21 | group pnds-recursor |
21 | group pnds-recursor |
|
22 | include /etc/monit/templates/rootbin |
22 | include /etc/monit/templates/rootbin |
|
23 | |
23 | |