diff options
author | Jan Luebbe <jlu@pengutronix.de> | 2022-08-24 18:11:54 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-08-24 16:59:55 -0700 |
commit | 517c9dab9e73dfe8e02d3723a37e20679d14e84d (patch) | |
tree | 5dd10632a065d13e6ec205ffa6dd68d9fdce9c10 | |
parent | 14c47261c2a90d6aa96bf3ff83028eb9404c10ce (diff) | |
download | meta-openembedded-517c9dab9e73dfe8e02d3723a37e20679d14e84d.tar.gz |
chrony: add support for config and source snippet includes
This makes it simpler to set specific config options or custom sources
by adding snippet files to /etc/chrony/conf.d/ or /etc/chrony/sources.d/
instead of modifying a copy of the full configuration file. As new
snippets can be added from separate recipes, targeted changes can be
done in multiple layers.
These specific directories are also used in Debian's default
configuration. It is not an error if they are missing.
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-networking/recipes-support/chrony/chrony/chrony.conf | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/chrony/chrony/chrony.conf b/meta-networking/recipes-support/chrony/chrony/chrony.conf index 8d226d31a5..d11e2d4069 100644 --- a/meta-networking/recipes-support/chrony/chrony/chrony.conf +++ b/meta-networking/recipes-support/chrony/chrony/chrony.conf | |||
@@ -1,3 +1,6 @@ | |||
1 | # Load config files matching the /etc/chrony/conf.d/*.conf pattern. | ||
2 | confdir /etc/chrony/conf.d | ||
3 | |||
1 | # Use public NTP servers from the pool.ntp.org project. | 4 | # Use public NTP servers from the pool.ntp.org project. |
2 | # Please consider joining the pool project if possible by running your own | 5 | # Please consider joining the pool project if possible by running your own |
3 | # server(s). | 6 | # server(s). |
@@ -17,6 +20,10 @@ pool 0.openembedded.pool.ntp.org iburst | |||
17 | # gpios = <&ps7_gpio_0 56 0>; | 20 | # gpios = <&ps7_gpio_0 56 0>; |
18 | # }; | 21 | # }; |
19 | 22 | ||
23 | # Load source files matching the /etc/chrony/sources.d/*.sources pattern. | ||
24 | # These can be reloaded using 'chronyc reload sources'. | ||
25 | sourcedir /etc/chrony/sources.d | ||
26 | |||
20 | # In first three updates step the system clock instead of slew | 27 | # In first three updates step the system clock instead of slew |
21 | # if the adjustment is larger than 1 second. | 28 | # if the adjustment is larger than 1 second. |
22 | makestep 1.0 3 | 29 | makestep 1.0 3 |