I'm seeing same behavior as Alex where failure of ntpdate is preventing
ntpd from starting.  ntpdate is logging same message indicating failure
due to name resolution (Bind not running yet at boot):

Sep 16 10:40:09 scorpion ntpdate[1033]: name server cannot be used:
Temporary failure in name resolution (-3)

The script /etc/network/if-up.d/ntpdate does attempt to stop any running
ntp service prior to running ntpdate but then exits without restarting
ntp if ntpdate-debian fails.

I modified /etc/network/if-up.d/ntpdate to only log a message and exit
as a workaround and ntpd now starts at boot.

I'm still a bit puzzled why ntpd doesn't attempt to start after
/etc/network/if-up.d/ntpdate fails (multiple times in my case due to
multiple interfaces on host).  When /etc/network/if-up.d/ntpdate
runs/fails, there is no log message from ntp indicating it tried to
start (neither before nor after ntpdate fails).  However, after applying
my workaround, the log message for ntp service is one second after last
run of /etc/network/if-up.d/ntpdate.  I would have thought that the
failure of ntpdate would not prevent the later startup of ntp.  I'm
guessing that /etc/network/if-up.d/ntpdate initiates a stop in parallel
to systemd start of ntpd before it logs anything to syslog.

-- 
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