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

Aleksi Suhonen debian-reportbug-2004 at ssd.axu.tm
Wed Oct 3 09:50:11 UTC 2007


Bon soir,

Arne Nordmark 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.

I perhaps re-posted a bit hastily. After moving the script and
rerunning ifdown/up it worked as expected, but then I tested
rebooting the machine too, and for some reason it didn't get
run. Since then it has been run every time.

So my original suggestion is fine and please ignore the re-post :-)

--
	Aleksi Suhonen





More information about the pkg-ntp-maintainers mailing list