]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
doc: improve ntpdate answer in FAQ
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 5 Aug 2019 16:15:38 +0000 (18:15 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 6 Aug 2019 14:11:07 +0000 (16:11 +0200)
doc/faq.adoc

index 04cdae8d18fb84c43540dce2340daa3d2b1572fd..9c628b71a3916c2d333119f2314d900b1f4d95ad 100644 (file)
@@ -244,6 +244,18 @@ specified on the command line. For example:
 # chronyd -q 'pool pool.ntp.org iburst'
 ----
 
+The command above would normally take about 5 seconds if the servers were
+well synchronised and responding to all requests. If not synchronised or
+responding, it would take about 10 seconds for `chronyd` to give up and exit
+with a non-zero status. A faster configuration is possible. A single server can
+be used instead of four servers, the number of measurements can be reduced with
+the `maxsamples` option, and a timeout can be specified with the `-t` option.
+The following command would take only up to about 1 second.
+
+----
+# chronyd -q -t 1 'server pool.ntp.org iburst maxsamples 1'
+----
+
 === Can `chronyd` be configured to control the clock like `ntpd`?
 
 It is not possible to perfectly emulate `ntpd`, but there are some options that