]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
examples: add leapsecmode to chrony.conf examples
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 4 Aug 2020 13:42:59 +0000 (15:42 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 6 Aug 2020 09:34:32 +0000 (11:34 +0200)
examples/chrony.conf.example2
examples/chrony.conf.example3

index 662823645eca47e462d785fb3ebd1e40ea4e58fc..a4cdcd5bac29d36eedf99c95ba9e790f9a6a1dfc 100644 (file)
@@ -34,6 +34,9 @@ rtcsync
 # Save NTS keys and cookies.
 ntsdumpdir /var/lib/chrony
 
+# Insert/delete leap seconds by slewing instead of stepping.
+#leapsecmode slew
+
 # Get TAI-UTC offset and leap seconds from the system tz database.
 #leapsectz right/UTC
 
index 5e0f630e09b457a15491cf992dcebae014b12c25..4e3e3a86ecf3947eed136f7e6bfd60d93c8be5d3 100644 (file)
@@ -145,6 +145,18 @@ ntsdumpdir /var/lib/chrony
 
 ! makestep 1.0 3
 
+#######################################################################
+### LEAP SECONDS
+# A leap second is an occasional one-second correction of the UTC
+# time scale.  By default, chronyd tells the kernel to insert/delete
+# the leap second, which makes a backward/forward step to correct the
+# clock for it.  As with the makestep directive, this jump can upset
+# some applications.  If you prefer chronyd to make a gradual
+# correction, causing the clock to be off for a longer time, uncomment
+# the following line.
+
+! leapsecmode slew
+
 #######################################################################
 ### LOGGING
 # If you want to log information about the time measurements chronyd has