Bug#596487: [pkg-ntp-maintainers] Bug#596487: ntp: initscript should depend on $named

2010-09-13 Thread Kurt Roeckx
On Mon, Sep 13, 2010 at 10:34:57AM +1200, Francois Marier wrote:
 On 2010-09-12 at 23:40:08, Kurt Roeckx wrote:
  The other 2 common problem are:
  - Having libnss-mdns installed (#561622)
 
 Ah, it might be that one. I'll try removing it. Thanks for the pointer.
 
 In any case, do you think that ntp should depend on named though? I would
 assume that most people are using hostnames for their ntp servers and not IP
 addresses, but I do see that it's possible to run ntp and not rely on
 DNS. In which case the downside of that extra dependency would be that ntp
 gets started a bit later than necessary.

Not everybody runs named, so we can't depend on it.  I think there
is also a way to say start it before us if it's available.

But ntp can perfectly start without the nameserver working.  You
might not have a network connection at the time you boot.  ntpd
will start a slave process to do the resolving in that case, and
so can resolv it later.


Kurt




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



Bug#596487: [pkg-ntp-maintainers] Bug#596487: ntp: initscript should depend on $named

2010-09-12 Thread Kurt Roeckx
tags 596487 - patch
thanks

On Sun, Sep 12, 2010 at 10:33:33AM +1200, Francois Marier wrote:
 Package: ntp
 Version: 1:4.2.6.p2+dfsg-1
 Severity: normal
 Tags: patch
 
 The initscript for ntp should add a dependency on $named because it fails
 to start when resolv.conf is set to 127.0.0.1 and the local dns server is
 not yet running.

There are a few cases that might cause you problems.  The most
likely is a config error.  Please check that you have the
following 2 lines in your config file:
restrict 127.0.0.1
restrict ::1

You most likely have a restrict 127.0.0.1 nomodify


Kurt




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



Bug#596487: [pkg-ntp-maintainers] Bug#596487: ntp: initscript should depend on $named

2010-09-12 Thread Francois Marier
On 2010-09-12 at 22:14:37, Kurt Roeckx wrote:
 There are a few cases that might cause you problems.  The most
 likely is a config error.  Please check that you have the
 following 2 lines in your config file:
 restrict 127.0.0.1
 restrict ::1
 
 You most likely have a restrict 127.0.0.1 nomodify

This is what I've got in my /etc/ntp.conf:

  $ grep restrict /etc/ntp.conf 
  # Note that restrict applies to both servers and clients, so a configuration
  restrict -4 default kod notrap nomodify nopeer noquery
  restrict -6 default kod notrap nomodify nopeer noquery
  restrict 127.0.0.1
  restrict ::1
  #restrict 192.168.123.0 mask 255.255.255.0 notrust

This is the error message I see in my logs:

  ntpdate[1547]: name server cannot be used, reason: Temporary failure in name 
resolution
  ntpd[1595]: signal_no_reset: signal 17 had flags 400

Cheers,
Francois

-- 
Francois Marier identi.ca/fmarier
http://feeding.cloud.geek.nz  twitter.com/fmarier



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



Bug#596487: [pkg-ntp-maintainers] Bug#596487: ntp: initscript should depend on $named

2010-09-12 Thread Francois Marier
On 2010-09-12 at 23:40:08, Kurt Roeckx wrote:
 The other 2 common problem are:
 - Having libnss-mdns installed (#561622)

Ah, it might be that one. I'll try removing it. Thanks for the pointer.

In any case, do you think that ntp should depend on named though? I would
assume that most people are using hostnames for their ntp servers and not IP
addresses, but I do see that it's possible to run ntp and not rely on
DNS. In which case the downside of that extra dependency would be that ntp
gets started a bit later than necessary.

Cheers,
Francois

-- 
Francois Marier identi.ca/fmarier
http://feeding.cloud.geek.nz  twitter.com/fmarier



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



Bug#596487: ntp: initscript should depend on $named

2010-09-11 Thread Francois Marier
Package: ntp
Version: 1:4.2.6.p2+dfsg-1
Severity: normal
Tags: patch

The initscript for ntp should add a dependency on $named because it fails
to start when resolv.conf is set to 127.0.0.1 and the local dns server is
not yet running.

Cheers,
Francois

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34.6-grsec (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

Versions of packages ntp depends on:
ii  adduser  3.112   add and remove users and groups
ii  dpkg 1.15.8.4Debian package management system
ii  libc62.11.2-3Embedded GNU C Library: Shared lib
ii  libcap2  1:2.19-3support for getting/setting POSIX.
ii  libedit2 2.11-20080614-1 BSD editline and history libraries
ii  libopts251:5.10-1.1  automated option processing librar
ii  libssl0.9.8  0.9.8o-2SSL shared libraries
ii  lsb-base 3.2-23.1Linux Standard Base 3.2 init scrip
ii  netbase  4.42Basic TCP/IP networking system

Versions of packages ntp recommends:
ii  perl  5.10.1-14  Larry Wall's Practical Extraction 

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

-- Configuration Files:
/etc/ntp.conf changed [not included]

-- no debconf information
--- a/init.d/ntp
+++ b/init.d/ntp
@@ -2,8 +2,8 @@
 
 ### BEGIN INIT INFO
 # Provides:ntp
-# Required-Start:  $network $remote_fs $syslog
-# Required-Stop:   $network $remote_fs $syslog
+# Required-Start:  $network $remote_fs $syslog $named
+# Required-Stop:   $network $remote_fs $syslog $named
 # Default-Start:   2 3 4 5
 # Default-Stop:1
 # Short-Description: Start NTP daemon