Re: [chrony-users] Systemd timers and chrony

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


On Wed, Mar 23, 2022 at 3:22 PM Miroslav Lichvar <mlichvar@xxxxxxxxxx> 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 just restores the time
> from a file for the time-set target to be reached. It does not wait
> for the clock to be set by NTP.
>
> The same thing can be done with the chronyd -s option (when there is
> no RTC).
>


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.

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