Please do not blame me too hard if I provided a "patch" not in the correct format - but the script does the job for me. ntpd is started and continues to run, ntpdate seems to be invoked twice. The first invocation is too early and failes. The next one does its job but doesn't do a very impressive correction of the system time.
And here is an excerpt from my reboot log: $ grep -i ntp syslog_1743 Nov 28 17:33:49 localhost kernel: [ 0.076562] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) Nov 28 17:33:49 localhost ntpdate[781]: no servers can be used, exiting Nov 28 17:34:01 localhost systemd[1]: Starting LSB: Start NTP daemon... Nov 28 17:34:02 localhost ntp[1285]: * Starting NTP server ntpd Nov 28 17:34:02 localhost ntpd[1306]: ntpd [email protected] Wed Oct 5 12:34:48 UTC 2016 (1): Starting Nov 28 17:34:02 localhost ntpd[1306]: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 116:125 Nov 28 17:34:02 localhost ntp[1285]: ...done. Nov 28 17:34:02 localhost systemd[1]: Started LSB: Start NTP daemon. Nov 28 17:34:02 localhost ntpd[1309]: proto: precision = 0.129 usec (-23) Nov 28 17:34:02 localhost ntpd[1309]: restrict 0.0.0.0: KOD does nothing without LIMITED. Nov 28 17:34:02 localhost ntpd[1309]: restrict ::: KOD does nothing without LIMITED. Nov 28 17:34:02 localhost ntpd[1309]: Listen and drop on 0 v6wildcard [::]:123 Nov 28 17:34:02 localhost ntpd[1309]: Listen and drop on 1 v4wildcard 0.0.0.0:123 Nov 28 17:34:02 localhost ntpd[1309]: Listen normally on 2 lo 127.0.0.1:123 Nov 28 17:34:02 localhost ntpd[1309]: Listen normally on 3 eth0 192.168.0.12:123 Nov 28 17:34:02 localhost ntpd[1309]: Listen normally on 4 lo [::1]:123 Nov 28 17:34:02 localhost ntpd[1309]: Listen normally on 5 eth0 [fe80::221:9bff:fe4c:d684%2]:123 Nov 28 17:34:02 localhost ntpd[1309]: Listening on routing socket on fd #22 for interface updates Nov 28 17:34:05 localhost ntpdate[1154]: adjust time server 172.26.195.1 offset -0.000028 sec -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1577596 Title: ntpd not started when using ntpdate To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/init-system-helpers/+bug/1577596/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
