[ntp:questions] ntpd -q and driftfile

David J Taylor david-taylor at blueyonder.co.uk.invalid
Tue Mar 22 08:38:37 UTC 2011

> He can do that if he wants to. That was why the -q option was designed
> into ntpd-- one time setting of the clock time. However it cannot create
> a drift file. If he wants a drift file then as you say, he must run it
> continuously.

You could look at it that way, Bill, if all he needs is a one-off setting. 
However, Prashant says he wants to run it periodically, which doesn't 
really make sense.  Rather than a periodic run, he should leave ntpd 
running continuously, which is what ntpd is designed for.

Prashant, the fact that the server capability is already built-in to ntpd 
in no way detracts from using ntpd just as a client for your PC to keep 
the time spot-on.  Just leave it running all the time as it uses very 
little resources.  It will then compute the drift information after (IIRC) 
one hours of running, and it will keep your PC clock correct by adjusting 
the rate, rather than bang-bang adjustments of the time.


More information about the questions mailing list