[ntp:questions] Re: ntpd, boot time, and hot plugging

David L. Mills mills at udel.edu
Fri Feb 4 04:29:16 UTC 2005


Brad,

Why do you need to wait? The ntpd will exit when the clock is set, just 
like ntpdate and, like ntpdate, it will either step the clock or leave 
the residual adjustment in the kernel to be amortized over whatever 
period the particular kernel supports. This could be a considerable 
interval, just like with ntpdate.

Dave

Brad Knowles wrote:

> At 12:30 AM +0000 2005-02-04, Tom Smith wrote:
> 
>>  1) ntpd -gq
>>  2) sleep [guess how long ntpd -gq will take, worst case, to set the 
>> clock]
>>     -or-
>>     spin on ps looking for ntpd to start and then end
>>  3) start ntpd [normal operation options]
>>  4) start time-dependent services
> 
> 
>     If you're going to follow this model, then in step #2 you can send 
> queries to ntpd to see what it's status is, or you could just monitor 
> the clock and see if/when there is a large step.  Or, you could monitor 
> syslog output, or look for changes in the ntpd.pid file, or any number 
> of other things.
> 



More information about the questions mailing list