From 6d1cb58d8feafb45903f828c8ac93ae1b0a8a11d Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 4 Aug 2020 15:42:59 +0200 Subject: [PATCH] examples: add leapsecmode to chrony.conf examples --- examples/chrony.conf.example2 | 3 +++ examples/chrony.conf.example3 | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/examples/chrony.conf.example2 b/examples/chrony.conf.example2 index 6628236..a4cdcd5 100644 --- a/examples/chrony.conf.example2 +++ b/examples/chrony.conf.example2 @@ -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 diff --git a/examples/chrony.conf.example3 b/examples/chrony.conf.example3 index 5e0f630..4e3e3a8 100644 --- a/examples/chrony.conf.example3 +++ b/examples/chrony.conf.example3 @@ -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