John Nilsson john at milsson.nu
Wed Nov 16 01:06:22 CST 2005


On Tue, 2005-11-15 at 21:27 +0000, Tristan Wibberley wrote:
> George Deka wrote:
> 
> > move dhcp discovery to as early in the boot process as possible and call it
> > with -nw so it tries to get a ip in the background.
> > Then leave ntp to the last of the boot items, that way you should have
> > secured a ip in that time, also maybe look into reducing the ntp timeout.
> 
> Or have dhcp discovery check for a trigger to run when it has finished.
> If there is no route to the ntp server ntpdate could set the trigger,
> then retry. That would guarantee that ntpdate runs as early as possible,
> and can all be run in the background. It *might*, occasionally, run
> twice though; is that a problem?

why not just "while ! ping -q -c1 $NTPSERVER; do sleep 3; done" if
waiting for network is the only problem?

Regards,
John




More information about the ubuntu-devel mailing list