diff options
author | Peter A. Bigot <pab@pabigot.com> | 2018-04-09 20:39:16 +0200 |
---|---|---|
committer | Peter A. Bigot <pab@pabigot.com> | 2018-04-14 16:52:40 +0200 |
commit | 2dd79846ddd5f31aaf178eb3457677139e38fac0 (patch) | |
tree | 4cb0f47df662847dbee21579cb56a3e798ba14e6 /units/systemd-timesyncd.service.in | |
parent | units: leave systemd-time-wait-sync disabled by default (diff) | |
download | systemd-2dd79846ddd5f31aaf178eb3457677139e38fac0.tar.xz systemd-2dd79846ddd5f31aaf178eb3457677139e38fac0.zip |
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.in | 1 |
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 |