Re: Testing if timesyncd is synced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: Mantas Mikulenas [mailto:grawity@xxxxxxxxx] 
> 
> Call adjtimex(2) and check whether buf.status has STA_UNSYNC 
> (should be unset when clock is synchronized).
> 
> The systemd-timedated helper service 
> (org.freedesktop.timedate1) exposes the same flag as the 
> org.freedesktop.timedate1.NTPSynchronized property on 
> /org/freedesktop/timedate1.

That looks pretty simple. I'll try it out. This is my own Yocto-based embedded system with a recent kernel, so there are no issues of compatibility, as others warned about.

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco@xxxxxxxxxxxxx

_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux