1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
priority: 400 help: Network Time Protocol (NTP) configuration end: sudo /opt/vyatta/sbin/vyatta_update_ntp.pl if grep -q '^server' /etc/ntp.conf then if pgrep -f -u ntp /usr/sbin/ntpd > /dev/null then sudo /usr/sbin/invoke-rc.d ntp force-reload else sudo /usr/sbin/invoke-rc.d ntp start fi else sudo /usr/sbin/invoke-rc.d ntp stop fi