[pkg-ntp-maintainers] Bug#408219: ntpd giving up on eth0 before it is initialized

Arne Nordmark nordmark at mech.kth.se
Tue Oct 2 07:15:11 UTC 2007


> I wrote:
>> I ran into this problem with eth1, my WLAN card. I found that
>> by moving the script from /etc/dhcp3/dhclient-enter-hooks.d to
>> /etc/dhcp3/dhclient-exit-hooks.d it is now executed at the
>> correct phase, after the interface has been given addresses.
> 
> Except ... scripts from that location aren't run when the dhcp
> is invoked the very first time, only on subsequent invocations...
> 

Is this so? At least on etch, the /etc/dhcp3/dhclient-script ends with 
the line
exit_with_hooks 0
and on my system, exit hooks seems to run at startup time. It seems 
correct to run ntp_servers_setup_add at exit hook time, and possibly 
keep ntp_servers_setup_remove running at enter hook time.

> --
> 	Aleksi Suhonen

Arne Nordmark






More information about the pkg-ntp-maintainers mailing list