chiark / gitweb /
time-wait-sync: use watchfile to coordinate with timesyncd
authorPeter A. Bigot <pab@pabigot.com>
Mon, 9 Apr 2018 18:39:16 +0000 (13:39 -0500)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commitb6f89490bb8cebc087140af940c876124bd78263
tree90b93174c8a373fce5e0b3995fbd0a7e80571e06
parent66f37389209ce6f969d800ddecbf6a7972ef00da
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/elogind-time-wait-sync.service.xml