configuration-templates
/monit/debian/templates/ntpd |
@@ -1,12 +1,9 @@ |
########################################################################### |
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
## Copyright (C) Wizardry and Steamworks 2018 - License: GNU GPLv3 ## |
########################################################################### |
|
# The monit file works assuming that /etc/init.d/ntp exists - |
# on some distributions, the init file is located at /etc/init.d/ntpd. |
|
check process ntpd with pidfile /var/run/ntpd.pid |
start program = "/etc/init.d/ntp start" |
stop program = "/etc/init.d/ntp stop" |
if failed host 127.0.0.1 port 123 type udp then restart |
# if 5 restarts within 5 cycles then timeout |
check process ntpd matching "ntpd" |
start program "/bin/systemctl start openntpd" |
stop program "/bin/systemctl stop openntpd" |
#if failed host 127.0.0.1 port 123 type udp then restart |
# if 5 restarts within 5 cycles then timeout |