Package: openntpd
Version: 20080406p-10
Followup-For: Bug #736515
Control: tags -1 +patch
I was wrong: simply dropping stuff in the dhclient hooks does *not*
work when network-manager is used.
In my case, the ifup.d directory fixed the problem: it turns out there
is already a script there, but it works only if there is a "listen"
line in the config file, which is incorrect, as this bug report shows.
The following is a modified config file that works here.
A.
-- System Information:
Debian Release: 8.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500,
'stable'), (1, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.2.0-0.bpo.1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages openntpd depends on:
ii adduser 3.113+nmu3
ii init-system-helpers 1.22
ii libc6 2.19-18+deb8u4
ii libssl1.0.0 1.0.1t-1+deb8u2
ii netbase 5.3
openntpd recommends no packages.
openntpd suggests no packages.
-- Configuration Files:
/etc/network/if-up.d/openntpd changed:
CONFIG="/etc/openntpd/ntpd.conf"
if [ "${METHOD}"X = "loopback"X ] || [ "${METHOD}"X = "none"X ]
then
exit 0
fi
if ! grep -q '^[[:space:]]*listen' "$CONFIG"
then
false # exit 0
fi
invoke-rc.d openntpd force-reload || true
-- no debconf information