Bug#736515: openntpd: Does not survive IP address update by dhclient

2016-05-24 Thread Antoine Beaupré
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  libc62.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



Bug#736515: openntpd: Does not survive IP address update by dhclient

2016-05-18 Thread Antoine Beaupré
Package: openntpd
Version: 20080406p-10
Followup-For: Bug #736515

i think ifupd is not the right place to solve this. avahi does this in
/etc/dhcp/dhclient-enter-hooks.d/avahi-autoipd.

I'm trying this script here:

#!/bin/sh

case "$reason" in
MEDIUM|ARPCHECK|ARPSEND|NBI)
;;

PREINIT|BOUND|RENEW|REBIND|REBOOT|STOP|RELEASE)
service openntpd force-reload
;;

EXPIRE|FAIL|TIMEOUT)
service openntpd force-reload
;;
esac

-- 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  libc62.19-18+deb8u4
ii  libssl1.0.0  1.0.1k-3+deb8u5
ii  netbase  5.3

openntpd recommends no packages.

openntpd suggests no packages.

-- no debconf information



Bug#736515: openntpd: Does not survive IP address update by dhclient

2014-01-24 Thread Teemu Ikonen
Package: openntpd
Version: 20080406p-4
Severity: normal

Openntpd stops working and starts spamming syslog when the IP address of
the interface having the NTP server connections changes, like after a DHCP
update.

The syslog shows something like this:

-*-
Jan 24 09:07:57 xxx dhclient: bound to zz.zz.zz.zz -- renewal in 818 seconds.
Jan 24 09:09:29 xxx ntpd[2474]: sendto: Invalid argument
Jan 24 09:10:29 xxx ntpd[2474]: sendto: Invalid argument
...
-*-

The 'Invalid argument' messages continue a few times per minute, until
openntpd is restarted.

Looking at the openntpd package files, there is a
/etc/network/if-up.d/openntpd file which is supposed to restart openntpd
when an external interface comes up. I'm not sure whether a network interface
should go down and up during IP address change, but if that is the case,
then the bug is in isc-dhcp-client.

If network intefaces should stay up during IP address change, then this
bug could be fixed for dhclient using systems by placing a restart script
similar to ifupdowns to /etc/dhcp/dhclient-exit-hooks.d


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org