On Wed, Dec 7, 2011 at 22:38, Harlan Stenn <[email protected]> wrote: > So for all these reasons there is no *need* to run ntpdate before > running ntpd here, as best as I can see. Correct?
Agreed. There are two ways provided by recent ntpd for init scripts to start the daemon and wait for the clock to be synced before proceeding, similar to running ntpdate or ntpd -gq before starting the daemon but wasting less time and ntpd peer state. As Harlan has mentioned, the distribution has long included a ntp-wait script which pauses until ntpd has synced. More recently, ntpd added a --wait-sync option providing an easier and more direct alternative for init scripts which do not do anything else between starting ntpd and waiting for its first sync: with --wait-sync you start the daemon but the invoker is blocked until the daemon has synchronized, or a timeout expires, with the exit code indicating which. Cheers, Dave Hart _______________________________________________ questions mailing list [email protected] http://lists.ntp.org/listinfo/questions
