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

Brad Knowles brad at stop.mail-abuse.org
Fri Feb 4 00:32:08 UTC 2005

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.

Brad Knowles, <brad at stop.mail-abuse.org>

"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."

     -- Benjamin Franklin (1706-1790), reply of the Pennsylvania
     Assembly to the Governor, November 11, 1755

   SAGE member since 1995.  See <http://www.sage.org/> for more info.

More information about the questions mailing list