Re: [chrony-users] Handling offset when Mac wakes from sleep

[ Thread Index | Date Index | More Archives ]

On Sun, Jun 13, 2021 at 11:38:57AM +1200, Bryan Christianson wrote:
> The daemon works by running the following commands with the default settings shown
> On wakeup:
> 	chronyc burst 4/4
> 	sleep 10
> 	chronyc makestep

You could avoid the need to sleep by setting the threshold and limit
for the future clock updates, e.g. "chronyc makestep 0.1 3".

If you can detect network going down and up, you could rely on the
iburst option which should activate after switching the sources from
the offline to online state. That's what the NetworkManager dispatcher
scripts do on Linux.

> Some public NTP servers don't like clients to 'burst'. However I have yet to receive a complaint, but is this something to be concerned about?

There are many systems with iburst in default configuration. If some
server operator doesn't like that, their only option would be remove
the server from the pool. Rate limiting delays the clock update, so
that's a good reason to not use a fixed sleep.

Miroslav Lichvar

To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx 
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx 
with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.

Mail converted by MHonArc 2.6.19+