[ntp:questions] status information after ntpd -q

Sanal, Arjun (NSN - IN/Bangalore) arjun.sanal at nsn.com
Tue Feb 4 10:29:29 UTC 2014


>> i would like to use the command "ntpd -q" to synchronize with a server once,
>> but i need some feedback from the command about the status.
>
> ntpd was designed and is intended to run all of the time as a daemon,
> but you can do what you've asked for by setting explicit logging path like:
>
> # ntpd -q -l /tmp/ntpd.log

Is there any specific reason why 'ntpd -q' doesn't return any error code (for example: situations like server not reachable)

--
Arjun


More information about the questions mailing list