#931441 NTP under Buster always uses DHCP supplied server

Package:
ntp
Source:
ntpsec
Submitter:
Mark James
Date:
2021-02-08 16:03:05 UTC
Severity:
normal
Tags:
#931441#5
Date:
2019-07-05 02:03:57 UTC
From:
To:
Clean install Buster and ntp. Edit /etc/init.d/ntp and change the two references to /run/ntp.conf to point to my config file (/etc/ntp.conf) where I remove the pool statements and add two server statements pointing to my ntp two servers. Reboot.

ntp -p shows it using the dhcp supplied server.

The above process works under Stretch. It may have changed for Buster, if so what is the recommended method to use for our own config?

#931441#10
Date:
2019-07-07 22:01:57 UTC
From:
To:
Am 05.07.19 um 04:03 schrieb Mark James:

Hi Mark,

ntp in Buster is not started anymore with the initscript
/etc/init.d/ntp, but with a system unit. The file is in
/usr/lib/ntp/ntp-systemd-wrapper .

You can either change this file (which will not be update-safe) or
remove /etc/dhcp/dhclient-exit-hooks.d/ntp which is the hook script
responsible for gating the information from NetworkManager/dhclient into
the file ntp is reading.

Bernhard

#931441#17
Date:
2021-02-08 15:58:48 UTC
From:
To:
This problem is solved in the package ntpsec via an option located in
/etc/defaults/.... See files in package ntpsec:
/etc/dhcp/dhclient-exit-hooks.d/ntpsec and /etc/init.d/ntpsec. Please
add this functionality to ntp.

Thanks.
Jeff

P.S. The bug #560046 appears to be on the same topic as this bug. Maybe
merge them?