[pkg-ntp-maintainers] Bug#585772: /etc/init.d/ntp: Do set a dependency on $named
Regid Ichira
gl2n30y06arv2 at hotmail.com
Sun Jun 13 18:57:48 UTC 2010
Package: ntp
Version: 1:4.2.6.p1+dfsg-1
Severity: normal
Tags: patch
File: /etc/init.d/ntp
I recently had a parallel enabled boot sequence. Since then, I get
the following:
03:48:49 ntpd[1125]: ntpd 4.2.6
03:48:49 named[1129]: starting BIND
03:48:49 ntpd[1126]: Listen normally on 2 lo 127.0.0.1 UDP 123
03:48:49 ntpd[1126]: getaddrinfo: "ntp_server" invalid host address,
ignored
03:48:49 ntpd[1126]: restrict: error in address 'ntp_server' on
line 49. Ignoring...
03:48:49 ntpd[1126]: Deferring DNS for ntp_server 1
03:48:49 named[1129]: loading configuration from conf_file
03:48:49 named[1129]: command channel listening on 127.0.0.1#953
03:48:51 ntpd_intres[1140]: DNS ntp_server -> ip
03:48:51 ntpd_intres[1140]: ntp_intres.request: permission denied
03:49:54 ntpd_intres[1140]: ntp_intres.request: permission denied
03:49:54 last message repeated 6 times
I have eliminated lines and parts of lines in order to cut right to
the point. I think the important thing here is the order of events,
which I did maintain.
1. I haven't looked at the source code. Why does it claimed to be
`permission denied' ?
2. Can ntp eventually recover without manual intervention?
3. I think the whole issue can be bypassed by having a $named
dependency in the init file:
3.1 Restarting ntp after the system is running is smooth.
3.2 I think that with the old sysv dependency booting, ntp was
started only after $named.
3.3 exim4 init script, for example, does depened on $named.
4. I have tokens in ntp.conf that are not in the official debian conf
file. Does an administrator who adds them must also figure out to
add $named to the boot dependency?
5. The patch also set a dependency on $named for Required-Stop. I am
not sure whether this is realy necessary.
--- /etc/init.d/ntp.dpkg-dist 2010-06-13 16:56:33.000000000 +0300
+++ /etc/init.d/ntp 2010-06-13 16:58:30.000000000 +0300
@@ -2,8 +2,8 @@
### BEGIN INIT INFO
# Provides: ntp
-# Required-Start: $network $remote_fs $syslog
-# Required-Stop: $network $remote_fs $syslog
+# Required-Start: $named $network $remote_fs $syslog
+# Required-Stop: $named $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Start NTP daemon
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969
More information about the pkg-ntp-maintainers
mailing list