Package: dhcpcd5
Version: 6.10.1-1
Severity: normal
File: /sbin/dhcpcd5

Dear Maintainer,

I was working on setting up ntp in my home network, when noticed that
the ntp server was not restarted after dhcpcd created a new ntp
configuration.

Ater some debugging i found this part in
/lib/dhcpcd/dhcpcd-hooks/50-ntp.conf:

46  if [ "$ntp_service" = ntpd ] && type invoke-rc.d >/dev/null 2>&1; then
47          [ -e /var/lib/ntp ] || mkdir /var/lib/ntp
48          : ${ntp_service:=ntp}

This will not change $ntp_service to "ntp", so the ntpd daemon will not
read its config again.

Changing this to:

48          ntp_service=ntp

made things work.

A note, debian lately expect the generated configuration to exists in
/run/, not in /var/lib/ntp, but that can be changed in /etc/default/ntp.

Regards,

Gergely Tomka


-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64
 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages dhcpcd5 depends on:
ii  libc6  2.24-10

Versions of packages dhcpcd5 recommends:
ii  openresolv [resolvconf]  3.8.0-1

Versions of packages dhcpcd5 suggests:
pn  dhcpcd-gtk  <none>

-- Configuration Files:
/etc/dhcpcd.conf changed:
hostname
duid
persistent
option rapid_commit
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
option ntp_servers
option interface_mtu
require dhcp_server_identifier
slaac private
debug


-- no debconf information

Reply via email to