[systemd-devel] timesyncd equivalent to ntp-wait

Shawn Johnson shawn.johnson at spensatech.com
Tue Aug 8 13:13:42 UTC 2017


I need to be able to start a service only after time synchronization has
occurred.  I implemented this as a systemd target with ntpd and ntp-wait
but I can't find an equivalent for timesyncd. I found a couple references
to this problem but didn't find them helpful:

* [Patch from 2014]
https://lists.freedesktop.org/archives/systemd-devel/2014-November/025131.html
* [Github Bug 5097] https://github.com/systemd/systemd/issues/5097

Worst case I guess I could grep the output of timedatectl for "NTP
synchronized" but since that tool knows the state of synchronization It
would seem this information must be available in a more programmatic way.
Any help would be greatly appreciated. Also, if a solution is found how can
I submit changes to the documentation? The systemd-timesyncd.service man
page is pretty weak.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20170808/f326c9a8/attachment.html>


More information about the systemd-devel mailing list