Re: [chrony-users] Systemd timers and chrony |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Systemd timers and chrony
- From: Andrei Borzenkov <arvidjaar@xxxxxxxxx>
- Date: Wed, 23 Mar 2022 15:25:57 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=uUqHoRn+DNc9I9Gog+DGrjBTCsSvigiRWY3slQO7DPI=; b=cogCXfXFdoAS3h+I0UqfR1v+baWd7uS1EifPHXlznEu08+6b2ivah7Ca4X+M1vi/Yn fxsnAEiKzoK1m2ZBS2D2M63R3IoEUoihZ6ncxnSa6OIqaQ5z9XvHgjjFjtKBlBNAs+HZ 2VRC6PFnW8i+GtODDVh3cyMJRrzqG3ZqLhoWNEEnUGelWnaBddKZG7/vZtDA8vWbyTVt 4fLkY7TI5JL3D+WfftTPLhi5p8MOHJVkYHOMEYZ4rzkNaZh4jFqiHscp2zxXi6AfiwP4 VnXKKvaw7BoY38nS+e6Q1kvN1N6+IykcedkQkhYKPvshvOCX4t+Wm5RLfrRYgqhpe1ZI Hcmw==
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.