The monit
file works assuming that /etc/init.d/ntp
exists - on some distributions, the init
file is located at /etc/init.d/ntpd
.
########################################################################### ## Copyright (C) Wizardry and Steamworks 2018 - License: GNU GPLv3 ## ########################################################################### 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