Bug 986098 - RFE: one-time "check server" mode
Summary: RFE: one-time "check server" mode
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: chrony
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-19 01:05 UTC by Matthew Miller
Modified: 2014-06-09 13:50 UTC (History)
2 users (show)

Fixed In Version: chrony-1.30-0.1.pre1.fc21
Clone Of:
Environment:
Last Closed: 2014-06-09 13:50:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Matthew Miller 2013-07-19 01:05:05 UTC
Currently, Anaconda uses ntpdate to check whether a given ntpserver is available (without setting the time). 

https://fedoraproject.org/wiki/Changes/ntpdate

proposes to deprecate ntpdate. It would be nice if chrony had an equivalent command or mode, so that chrony can completely replace the ntp package (from which ntpdate is built).

Comment 1 Miroslav Lichvar 2013-07-19 07:02:48 UTC
That would be a nice feature, I'll see if we can get it included.

In the meantime you can use sntp, which is the replacement for ntpdate recommended by the NTP upstream.

Comment 2 Miroslav Lichvar 2014-04-09 15:04:06 UTC
This is now implemented in upstream git and it will be in chrony-1.30. It can be used like this:

# ./chronyd -Q "server 0.pool.ntp.org iburst"
2014-04-09T15:00:53Z chronyd version DEVELOPMENT starting
2014-04-09T15:00:53Z Initial frequency -13.273 ppm
2014-04-09T15:00:58Z System clock wrong by -0.013297 seconds (ignored)
2014-04-09T15:00:58Z chronyd exiting

A non-zero exit code indicates that no suitable servers could be reached.


Note You need to log in before you can comment on or make changes to this bug.