[ntp:questions] ntpd -q and driftfile

unruh unruh at wormhole.physics.ubc.ca
Tue Mar 22 07:14:40 UTC 2011

On 2011-03-22, David J Taylor <david-taylor at blueyonder.co.uk.invalid> wrote:
>> Hi,
>> I would like to know if ntpd would use the driftfile specified in /etc/
>> ntp.conf file if it is run periodically using crontab with -q option
>> as below:
>> /usr/sbin/ntpd -u ntp:ntp -p /var/run/ntpd.pid -g -q -L eth0
>> I do not find any drift file being created at the specified location.
>> Thanks and Regards,
>> Prashant
> Prashant,
> ntpd is intended to for continuous, not periodic running.  You are not 
> using it correctly.

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

> Cheers,
> David 

More information about the questions mailing list