Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to wait for time to be synchronized initially #1627

Open
mcpherrinm opened this issue Aug 27, 2024 · 0 comments
Open

Add method to wait for time to be synchronized initially #1627

mcpherrinm opened this issue Aug 27, 2024 · 0 comments

Comments

@mcpherrinm
Copy link

With systemd, I can order targets after the time is synced: https://manpages.debian.org/testing/systemd/systemd-time-wait-sync.service.8.en.html

I would like a similar method to have scripts or other tools block until ntpd-rs has successfully synced (ie, is not stratum 16) and written the time to the kernel successfully.

At least on a system I'm testing on, systemd reported that the time was synced when the ntpd server was shut down and thus couldn't have synced. ntp-ctl status says stratum 16, and my adjtimex test tool says the clock is not synchronized. Systemd does suggest that its time-wait-sync "unreliable" with 3rd party ntp clients, so that checks out.

Indirectly, I can do this via the adjtimex syscall in a generic tool. However, I would appreciate it if this could be supported "out of the box" that allows explicitly waiting for ntpd-rs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant