summaryrefslogtreecommitdiff
path: root/units/systemd-timesyncd.service.in
diff options
context:
space:
mode:
authorPeter A. Bigot <pab@pabigot.com>2018-04-09 13:39:16 -0500
committerPeter A. Bigot <pab@pabigot.com>2018-04-14 09:52:40 -0500
commit2dd79846ddd5f31aaf178eb3457677139e38fac0 (patch)
tree4cb0f47df662847dbee21579cb56a3e798ba14e6 /units/systemd-timesyncd.service.in
parent006ffa6421f763abc74b5cc03f55a8d9ee84325d (diff)
downloadsystemd-2dd79846ddd5f31aaf178eb3457677139e38fac0.tar.gz
time-wait-sync: use watchfile to coordinate with timesyncd
Systems that have an accurate real-time clock may have an initial unsynchronized time that is close enough to the synchronized time that the final adjustment doesn't trigger a waking "clock set" event. Have timesyncd touch a file in its runtime directory as a secondary signal for synchronization. Continue to support the timerfd-based trigger as a sufficient condition when the watchfile is not present. Closes issue #8683
Diffstat (limited to 'units/systemd-timesyncd.service.in')
-rw-r--r--units/systemd-timesyncd.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-timesyncd.service.in b/units/systemd-timesyncd.service.in
index d3bc4e9841..5b8b243f17 100644
--- a/units/systemd-timesyncd.service.in
+++ b/units/systemd-timesyncd.service.in
@@ -37,6 +37,7 @@ MemoryDenyWriteExecute=yes
RestrictRealtime=yes
RestrictNamespaces=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
+RuntimeDirectory=systemd/timesync
SystemCallFilter=~@cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
SystemCallArchitectures=native
LockPersonality=yes