[pkg-ntp-maintainers] Bug#571608: NTP does not work with networkmanager (host name not found)

Patrick Cervicek patrick at bts.spamtrap.hs-esslingen.de
Fri Feb 26 12:35:12 UTC 2010


Subject: ntp: NTP does not work with networkmanager (host name not found)
Package: ntp
Version: 1:4.2.4p4+dfsg-8lenny3
Severity: normal

*** Please type your report below this line ***

When booting using ntp and networkmanger, ntp starts and tries to resolve 
the timeservers
even when the network connection is not established yet. This causes ntp 
to startup but not poll my timeservers.

Mar 24 17:34:23 host ntpd_initres[3003]: host name not found: time1.example.net
Mar 24 17:34:23 host ntpd_initres[3003]: couldn't resolve `time1.example.net', giving up on it
Mar 24 17:34:23 host ntpd_initres[3003]: host name not found: time2.example.net
Mar 24 17:34:23 host ntpd_initres[3003]: couldn't resolve `time2.example.net', giving up on it
Mar 24 17:34:32 host dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
Mar 24 17:34:32 host dhclient: DHCPOFFER from 1.2.3.4
Mar 24 17:34:32 host dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Mar 24 17:34:32 host dhclient: DHCPACK from 1.2.3.4

Without networkmanager everything runs fine as the script "networking" is 
executed before "ntp" As networkmanager obeys /etc/network/if-up.d/ I placed this file as 
workaround and it works now for me.

#!/bin/bash

if [ "$IFACE" = lo ]; then
         exit 0
fi


main() {
  sleep 10
  /etc/init.d/ntp restart
}

main &


-- System Information:
Debian Release: 5.0.4
   APT prefers stable
   APT policy: (990, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ntp depends on:
ii  adduser                 3.110            add and remove users and groups
ii  libc6                   2.7-18lenny2     GNU C Library: Shared libraries
ii  libcap1                 1:1.10-14        support for getting/setting POSIX.
ii  libedit2                2.11~20080614-1  BSD editline and history libraries
ii  libncurses5             5.7+20081213-1   shared libraries for terminal hand
ii  libssl0.9.8             0.9.8g-15+lenny6 SSL shared libraries
ii  lsb-base                3.2-20           Linux Standard Base 3.2 init scrip
ii  netbase                 4.34             Basic TCP/IP networking system

Versions of packages ntp recommends:
ii  perl                     5.10.0-19lenny2 Larry Wall's Practical Extraction

Versions of packages ntp suggests:
pn  ntp-doc                       <none>     (no description available)

-- no debconf information


-- 





More information about the pkg-ntp-maintainers mailing list