Re: [chrony-users] Request: Add an optional timeout option for 'chronyd -q ...'

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


On Thu, Dec 01, 2016 at 07:07:53AM -0600, Lonnie Abelbeck wrote:
> > How about returning 0 if the clock was in a synchronised state (the
> > reference was updated at least once) and 1 if not? With -q that would
> > be 0 only if the clock was stepped.
> 
> Yes, that would work for our situation.
> 
> For example using "chronyd -q -u ntp -t 10", if after 5 seconds the clock was in a synchronized state, it steps the clock and exits 0.  Alternatively if after 10 seconds the clock was not yet in a synchronized state, it would exit with a non-zero (timeout) return.

The -t option is now in git. If you test it, please let me know if it
works for you as expected.

-- 
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+ http://listengine.tuxfamily.org/