diff --git a/Makefile-man.am b/Makefile-man.am
index 36e0ebbb672..e3c43b269ba 100644
--- a/Makefile-man.am
+++ b/Makefile-man.am
@@ -1244,11 +1244,16 @@ MANPAGES += \
man/systemd-timesyncd.service.8 \
man/timesyncd.conf.5
MANPAGES_ALIAS += \
- man/systemd-timesyncd.8
+ man/systemd-timesyncd.8 \
+ man/timesyncd.conf.d.5
man/systemd-timesyncd.8: man/systemd-timesyncd.service.8
+man/timesyncd.conf.d.5: man/timesyncd.conf.5
man/systemd-timesyncd.html: man/systemd-timesyncd.service.html
$(html-alias)
+man/timesyncd.conf.d.html: man/timesyncd.conf.html
+ $(html-alias)
+
endif
if ENABLE_VCONSOLE
diff --git a/man/timesyncd.conf.xml b/man/timesyncd.conf.xml
index aeb7182f912..1a56c2c5c45 100644
--- a/man/timesyncd.conf.xml
+++ b/man/timesyncd.conf.xml
@@ -22,7 +22,8 @@
along with systemd; If not, see .
-->
-
+
timesyncd.conf
systemd
@@ -44,24 +45,28 @@
timesyncd.conf
- Network Time Synchronization configuration file
+ timesyncd.conf.d
+ Network Time Synchronization configuration files
/etc/systemd/timesyncd.conf
+ /etc/systemd/timesyncd.conf.d/*.conf
+ /run/systemd/timesyncd.conf.d/*.conf
+ /usr/lib/systemd/timesyncd.conf.d/*.conf
Description
- When starting, systemd-timesyncd will read the
- configuration file
- timesyncd.conf. This
- configuration file controls NTP network time
+ These configuration files control NTP network time
synchronization.
+
+
+
Options
diff --git a/src/timesync/timesyncd-conf.c b/src/timesync/timesyncd-conf.c
index 4c2dcdb62b9..be1f4bb1510 100644
--- a/src/timesync/timesyncd-conf.c
+++ b/src/timesync/timesyncd-conf.c
@@ -97,8 +97,9 @@ int config_parse_servers(
int manager_parse_config_file(Manager *m) {
assert(m);
- return config_parse(NULL, "/etc/systemd/timesyncd.conf", NULL,
- "Time\0",
- config_item_perf_lookup, timesyncd_gperf_lookup,
- false, false, true, m);
+ return config_parse_many("/etc/systemd/timesyncd.conf",
+ CONF_DIRS_NULSTR("systemd/timesyncd.conf"),
+ "Time\0",
+ config_item_perf_lookup, timesyncd_gperf_lookup,
+ false, m);
}
diff --git a/src/timesync/timesyncd.conf.in b/src/timesync/timesyncd.conf.in
index 674a51dbd72..fc3c6c49cfd 100644
--- a/src/timesync/timesyncd.conf.in
+++ b/src/timesync/timesyncd.conf.in
@@ -5,6 +5,9 @@
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
+# You can override the directives in this file by creating files in
+# /etc/systemd/timesyncd.conf.d/*.conf.
+#
# See timesyncd.conf(5) for details
[Time]