<div dir="ltr"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div><div><div><div>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:</div><div><br></div><div>* [Patch from 2014] <a href="https://lists.freedesktop.org/archives/systemd-devel/2014-November/025131.html">https://lists.freedesktop.org/archives/systemd-devel/2014-November/025131.html</a></div><div>* [Github Bug 5097] <a href="https://github.com/systemd/systemd/issues/5097">https://github.com/systemd/systemd/issues/5097</a></div><div><br></div><div>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 <span style="color:rgb(0,0,0);font-family:Times;font-size:medium">systemd-timesyncd.service man page is pretty weak.</span></div></div></div></div></div></div></div></div>
</div>