I tested the suggestion from comment #38 by robx. ======== It works for
me.

Deviating from his proposal I only did the following change:
hhl@ILS-AP2:~$ diff ntpdate /etc/network/if-up.d/ntpdate
9a10
> #     exit 0  # hh_161120 - ntpdate prevents start ntpd Ubuntu Bug #1577596
42c43,44
< flock -n /run/lock/ntpdate /usr/sbin/ntpdate-debian -s $OPTS 2>/dev/null || :
---
> # avoid conflict with ntpd: option  -u have ntpdate-debian use a non 
> priveledged source port
> flock -n /run/lock/ntpdate /usr/sbin/ntpdate-debian -su $OPTS 2>/dev/null || :
hhl@ILS-AP2:~$

If -u is specified for ntpdate-debian it might also be possible to bypass 
stop/start of ntpd sind ntpdate and ntpd are no longer in conflict for port 
UDP/123. I hope there is no race for other resorces (hwclock?). I did disable 
stop/start and it works for me.
hhl@ILS-AP2:~$ diff ntpdate /etc/network/if-up.d/ntpdate # disabling ntpd 
stop/start
...
39c40,41
< invoke-rc.d --quiet $service stop >/dev/null 2>&1 || true
---
> # stopping service ntp is no loger required if ntpdate-debian is not using 
> source port UDP/123
> # invoke-rc.d --quiet $service stop >/dev/null 2>&1 || true
...
44c47
< invoke-rc.d --quiet $service start >/dev/null 2>&1 || true
---
> # invoke-rc.d --quiet $service start >/dev/null 2>&1 || true
hhl@ILS-AP2:~$


I still think package ntpdate should not be in the system unless explicitely 
requested.

I suggest package ntpdate to be modified to include option -u when
invoking ntpdate-debian.

The thorough analysis of what went wrong was done by others - see
comments. I am confident a simple change solves the bug and that it
works in general and not only for me!

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

Reply via email to