[ntp:questions] status information after ntpd -q

Miroslav Lichvar mlichvar at redhat.com
Tue Feb 4 10:37:55 UTC 2014


On Tue, Feb 04, 2014 at 10:29:29AM +0000, Sanal, Arjun (NSN - IN/Bangalore) wrote:
> 
> >> 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)

There is a bug filed for that:
https://bugs.ntp.org/show_bug.cgi?id=759

-- 
Miroslav Lichvar


More information about the questions mailing list