Re: [chrony-users] Systemd timers and chrony

2022-03-23 Thread Krix Rosinski
Hello all, Thank you very much for the suggestion, we are going to set this up and test. I'll report back once we have the solution tested. Kind regards, Krzysztof On Wed, 23 Mar 2022 at 13:37, Miroslav Lichvar wrote: > On Wed, Mar 23, 2022 at 03:25:57PM +0300, Andrei Borzenkov wrote: > >

Re: [chrony-users] Systemd timers and chrony

2022-03-23 Thread Miroslav Lichvar
On Wed, Mar 23, 2022 at 03:25:57PM +0300, Andrei Borzenkov wrote: > Yes, but without proper systemd dependencies other (timer) units will > not wait for it to happen. systemd-timesyncd.service has these > dependencies, while chronyd.service not, even if you use -s option. Good point. So, if you

Re: [chrony-users] Systemd timers and chrony

2022-03-23 Thread Andrei Borzenkov
On Wed, Mar 23, 2022 at 3:22 PM Miroslav Lichvar wrote: > > On Wed, Mar 23, 2022 at 03:15:21PM +0300, Andrei Borzenkov wrote: > > And systemd-timesyncd.target will pull in time-set.target: > > > > Wants=time-set.target > > Before=time-set.target > > An important thing to note is that timesyncd

Re: [chrony-users] Systemd timers and chrony

2022-03-23 Thread Miroslav Lichvar
On Wed, Mar 23, 2022 at 03:15:21PM +0300, Andrei Borzenkov wrote: > And systemd-timesyncd.target will pull in time-set.target: > > Wants=time-set.target > Before=time-set.target An important thing to note is that timesyncd just restores the time from a file for the time-set target to be reached.

Re: [chrony-users] Systemd timers and chrony

2022-03-23 Thread Andrei Borzenkov
On Wed, Mar 23, 2022 at 2:28 PM Krix Rosinski wrote: > > Hello all, thank you for the speedy reply! > > @Laura, yes we disable systemd-timesyncd completely and enable chrony instead. > > @Kevin, I may ask a separate question there, I thought this will be a common > issue for chrony users though.

Re: [chrony-users] Systemd timers and chrony

2022-03-23 Thread Krix Rosinski
Hello all, thank you for the speedy reply! @Laura, yes we disable systemd-timesyncd completely and enable chrony instead. @Kevin, I may ask a separate question there, I thought this will be a common issue for chrony users though. @Miroslav, timer below, we don't have an RTC, we haven't enabled

Re: [chrony-users] Systemd timers and chrony

2022-03-23 Thread Miroslav Lichvar
On Wed, Mar 23, 2022 at 12:09:32PM +0100, Krix Rosinski wrote: > Hello, > > We are trying to set up chrony instead of systemd-timesyncd service, > everything works perfectly except for the systemd timers which fires > straight away when chrony updates time. It seems that systemd-timesyncd > does

Re: [chrony-users] Systemd timers and chrony

2022-03-23 Thread Kevin P. Fleming
There's a good chance you'll get a more useful answer on the systemd-devel list, as the systemd developers can tell you what systemd-timesyncd is doing in that situation. On Wed, Mar 23, 2022 at 7:10 AM Krix Rosinski wrote: > > Hello, > > We are trying to set up chrony instead of