mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-01 05:13:01 +02:00
Move from everything in a single /etc/chrony.conf to a split up with configuration and server snippets. The latter comes in the form of configured (static) and DHCP client (dynamic) server setup. To accomodate this new scheme we need to detect when serves are removed from the configuration, so not only have the whole change_ntp() been refactored, it has been extended with a new pass. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
28 lines
1008 B
Plaintext
28 lines
1008 B
Plaintext
# This file defines default behavior and a skeleton for including config
|
||
# snippets from both confd, i.e., ietf-system.yang, and DHCP clients.
|
||
# Default values taken from Debian /etc/chrony/chrony.conf
|
||
|
||
# *.conf when acting as an NTP server
|
||
confdir /etc/chrony/conf.d
|
||
|
||
# *.sources from DHCP clients, e.g., /run/chrony-dhcp/$ifname.sources:
|
||
# server 192.0.2.1 iburst
|
||
sourcedir /run/chrony/dhcp-sources.d
|
||
|
||
# *.sources for NTP servers generated by confd:ietf-system.c
|
||
sourcedir /etc/chrony/sources.d
|
||
|
||
# Where to store the system clock rate information across reboots.
|
||
driftfile /var/lib/chrony/chrony.drift
|
||
|
||
# Stop bad estimates upsetting machine clock.
|
||
maxupdateskew 100.0
|
||
|
||
# Enables kernel synchronisation (every 11 minutes) of the real-time
|
||
# clock. Note that it can’t be used along with the 'rtcfile' directive.
|
||
rtcsync
|
||
|
||
# Step the system clock instead of slewing it if the adjustment is
|
||
# larger than one second, but only in the first three clock updates.
|
||
makestep 1 3
|