Re: [chrony-users] Chrony problem - not synchronizing time |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Chrony problem - not synchronizing time
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Wed, 12 Oct 2022 16:29:05 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665584949; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1fmVN6g6OBA2Cq9BaCtEAFlIz909h3af3HAQzw1+cnM=; b=HYZhEUweb+s6gzBWnc8gp3abUzkyqpM6+DHJ8ZVJ2DR9RjyMLi6uj+DKpYRctaSHdhsJzN FfbrHA3y6/nJpdroxRB9O64OXFFJcjSSG9/pUq3NlbrEebqUdGWLNhk4wkNVb/scrmwfjI hC5rYuPewt2e/BKT3s7xBId3r1qSunw=
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.