conf: add sourcedirs directive

Add a new directive to include configuration files that only specify NTP
sources and which will be possible to reload with a chronyc command.
This commit is contained in:
Miroslav Lichvar
2020-06-10 11:07:48 +02:00
parent ea4811b3b3
commit 519796de37
3 changed files with 219 additions and 16 deletions

View File

@@ -2150,6 +2150,17 @@ An example of the directive is:
confdirs @SYSCONFDIR@/chrony.d /var/run/chrony.d /usr/lib/chrony.d
----
[[sourcedirs]]*sourcedirs* _directory_...::
The *sourcedirs* directive is identical to the *confdirs* directive, except the
configuration files have the _.sources_ suffix and they can only specify NTP
sources (i.e. use the *server*, *pool*, and *peer* directive).
+
An example of the directive is:
+
----
sourcedirs /var/run/chrony-dhcp
----
[[include]]*include* _pattern_::
The *include* directive includes a configuration file, or multiple configuration
files if a wildcard pattern is specified. Unlike with the *confdirs* directive,