configuration-templates – Diff between revs 27 and 169
?pathlinks?
Rev 27 | Rev 169 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | ########################################################################### |
1 | ########################################################################### |
|
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
2 | ## Copyright (C) Wizardry and Steamworks 2018 - License: GNU GPLv3 ## |
|
3 | ########################################################################### |
3 | ########################################################################### |
|
Line 4... | Line -... | |||
4 | |
- | ||
5 | # The monit file works assuming that /etc/init.d/ntp exists - |
- | ||
6 | # on some distributions, the init file is located at /etc/init.d/ntpd. |
- | ||
7 | |
4 | |
|
8 | check process ntpd with pidfile /var/run/ntpd.pid |
5 | check process ntpd matching "ntpd" |
|
9 | start program = "/etc/init.d/ntp start" |
6 | start program "/bin/systemctl start openntpd" |
|
10 | stop program = "/etc/init.d/ntp stop" |
7 | stop program "/bin/systemctl stop openntpd" |
|
11 | if failed host 127.0.0.1 port 123 type udp then restart |
8 | #if failed host 127.0.0.1 port 123 type udp then restart |
|
12 | # if 5 restarts within 5 cycles then timeout |
9 | # if 5 restarts within 5 cycles then timeout |