My original issue is definitely a duplicate of Bug #1575572 and the fix
for that bug solves the specific problem described in Comment #8.

The issues described by Lars Kollstedt and others are a separate issue
... My original issue was that systemd would not start ntp.service if
/etc/network/if-up.d/ntpdate was called before systemd started
ntp.service on its own ... This new issue is that ntpd will not start if
/etc/network/if-up.d/ntpdate is called multiple times (due to multiple
network interfaces being brought up), and an ntpdate command is still
running when ntpd is started.

I believe this new issue is caused by the fact that /etc/network/if-
up.d/ntpdate uses /run/lock/ntpdate as its lock file, but
/etc/init.d/ntp uses /var/lock/ntpdate as its lock file.  I believe that
using the same lock file in both of those scripts should fix this issue.
Or, as was mentioned in several comments, removing ntpdate or disabling
/etc/network/if-up.d/ntpdate (and if necessary using `ntpd -q` instead
of ntpdate to step the clock) should also fix it.

In my case, the reason to have ntpdate installed is for
testing/troubleshooting purposes.  As far as I can tell, ntpd does NOT
have any options that are equivalent to `ntpdate -qu <server>` or
`ntpdate -du <server>`.  Since ntpdate is being deprecated, should I
file a feature request against ntpd to have equivalent options added to
ntpd?

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to