Re: [chrony-users] Chrony problem - not synchronizing time

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


On Wed, Oct 12, 2022 at 04:04:13PM +0200, Tino Mihajlovik wrote:
> One other question: is there any way that on makestep directive by Chronyc i detect this change of the system time and run my custom script with some command?

Not with chronyc.

You can write a script watching the system log for the "System clock
was stepped" message, or write a program using a timer created with
the TFD_TIMER_CANCEL_ON_SET flag, which will trigger on any steps of
the system clock, not just those made by chronyd.

-- 
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/