1212cat > /etc/chrony/chrony.conf << EOF
1313# Welcome to the chrony configuration file. See chrony.conf(5) for more
1414# information about usable directives.
15+
16+ # Include configuration files found in /etc/chrony/conf.d.
17+ confdir /etc/chrony/conf.d
18+
19+ # Use Debian vendor zone.
1520pool ${CHRONY_POOL} iburst
1621pool 2.debian.pool.ntp.org iburst
1722
23+ # Use time sources from DHCP.
24+ sourcedir /run/chrony-dhcp
25+
26+ # Use NTP sources found in /etc/chrony/sources.d.
27+ sourcedir /etc/chrony/sources.d
28+
1829# This directive specify the location of the file containing ID/key pairs for
1930# NTP authentication.
2031keyfile /etc/chrony/chrony.keys
@@ -26,7 +37,11 @@ cmdport 0
2637# information.
2738driftfile /var/lib/chrony/chrony.drift
2839
40+ # Save NTS keys and cookies.
41+ ntsdumpdir /var/lib/chrony
42+
2943# Uncomment the following line to turn logging on.
44+ #log tracking measurements statistics
3045log statistics
3146
3247# Log files location.
@@ -35,20 +50,21 @@ logdir /var/log/chrony
3550# Log 10 msec offset changes.
3651logchange 0.010
3752
38- ## seccomp (-F -1) is not compatible with mailonchange
39- #mailonchange root 0.500
40-
4153# Stop bad estimates upsetting machine clock.
4254maxupdateskew 100.0
4355
4456# This directive enables kernel synchronisation (every 11 minutes) of the
45- # real-time clock. Note that it can’t be used along with the 'rtcfile' directive.
46- # Virtual servers do not have permanent RTCs.
57+ # real-time clock. Note that it can't be used along with the 'rtcfile' directive.
4758#rtcsync
4859
4960# Step the system clock instead of slewing it if the adjustment is larger than
5061# one second, but only in the first three clock updates.
5162makestep 1 3
63+
64+ # Get TAI-UTC offset and leap seconds from the system tz database.
65+ # This directive must be commented out when using time sources serving
66+ # leap-smeared time.
67+ leapsectz right/UTC
5268EOF
5369
5470service chrony restart
0 commit comments