From 7ae064bab0010dff8827a0ed5e1239d2778dc7c1 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 21 Jan 2024 08:29:52 +0100 Subject: ntp: T5692: add support to configure leap second behavior * set service ntp leap-second [ignore|smear|system|timezone] Where timezone is the new and old default resulting in adding "leapsectz right/UTC" to chrony.conf. The most prominent new option is "smear" which will add leapsecmode slew maxslewrate 1000 smoothtime 400 0.001 leaponly to chrony. See https://chrony-project.org/doc/4.3/chrony.conf.html leapsecmode for additional information --- interface-definitions/service_ntp.xml.in | 36 ++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) (limited to 'interface-definitions/service_ntp.xml.in') diff --git a/interface-definitions/service_ntp.xml.in b/interface-definitions/service_ntp.xml.in index 65a45d7a1..c057b62b5 100644 --- a/interface-definitions/service_ntp.xml.in +++ b/interface-definitions/service_ntp.xml.in @@ -9,6 +9,38 @@ 900 + #include + #include + #include + #include + + + Leap second behavior + + ignore smear system timezone + + + ignore + No correction is applied to the clock for the leap second + + + smear + Correct served time slowly be slewing instead of stepping + + + system + Kernel steps the system clock forward or backward + + + timezone + Use UTC timezone database to determine when will the next leap second occur + + + (ignore|smear|system|timezone) + + + timezone + Network Time Protocol (NTP) server @@ -56,10 +88,6 @@ - #include - #include - #include - #include -- cgit v1.2.3