]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/timesync/timesyncd-manager.c
time-wait-sync: use watchfile to coordinate with timesyncd 8696/head
authorPeter A. Bigot <pab@pabigot.com>
Mon, 9 Apr 2018 18:39:16 +0000 (13:39 -0500)
committerPeter A. Bigot <pab@pabigot.com>
Sat, 14 Apr 2018 14:52:40 +0000 (09:52 -0500)
commit2dd79846ddd5f31aaf178eb3457677139e38fac0
tree4cb0f47df662847dbee21579cb56a3e798ba14e6
parent006ffa6421f763abc74b5cc03f55a8d9ee84325d
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
man/systemd-time-wait-sync.service.xml
man/systemd-timesyncd.service.xml
src/time-wait-sync/time-wait-sync.c
src/timesync/timesyncd-manager.c
units/systemd-timesyncd.service.in