Re: Systemd timers and chrony
Andrei Borzenkov <[email protected]>
| Newsgroups | gmane.comp.time.chrony.user |
|---|---|
| Message-ID | <CAA91j0X99AEBzFa1AVwCH+dW0D0z2ufK0w29mt0JeFU9q_MuOw@mail.gmail.com> |
On Wed, Mar 23, 2022 at 3:22 PM Miroslav Lichvar <[email protected]> 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-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org with "unsubscribe" in the subject. For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org with "help" in the subject. Trouble? Email [email protected]