Is it possible to programmatically know if systemd-timesyncd;
- Can access to the NTP servers?
- Has synced the system time with the server?
The reason is I have an application depends on precise time information and must be started after system time is updated. Or is there any other method without using systemd?
Thanks.
From this link ( systemd-timesyncd.service man page):