]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
examples: add leapsectz to configuration examples 3.2
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 14 Sep 2017 13:59:59 +0000 (15:59 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 15 Sep 2017 06:32:09 +0000 (08:32 +0200)
examples/chrony.conf.example2
examples/chrony.conf.example3

index cbd065eda8ba082edade88775d98468305888736..21be153d89235750b6b59372db02dea150c6f9a3 100644 (file)
@@ -28,6 +28,9 @@ rtcsync
 # Specify file containing keys for NTP authentication.
 #keyfile /etc/chrony.keys
 
+# Get TAI-UTC offset and leap seconds from the system tz database.
+#leapsectz right/UTC
+
 # Specify directory for log files.
 logdir /var/log/chrony
 
index fdc656a4d28af7f603724e90bb212ffce7f22980..05a4e987a5a59fae2b983aa75180bab0656a8169 100644 (file)
@@ -97,6 +97,12 @@ driftfile /var/lib/chrony/drift
 
 ! pidfile /var/run/chronyd.pid
 
+# If the system timezone database is kept up to date and includes the
+# right/UTC timezone, chronyd can use it to determine the current
+# TAI-UTC offset and when will the next leap second occur.
+
+! leapsectz right/UTC
+
 #######################################################################
 ### INITIAL CLOCK CORRECTION
 # This option is useful to quickly correct the clock on start if it's