Re: [chrony-users] Chrony and systemd-timesyncd |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Chrony and systemd-timesyncd
- From: Andrei Borzenkov <arvidjaar@xxxxxxxxx>
- Date: Fri, 12 Jul 2024 14:44:26 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720784678; x=1721389478; darn=chrony.tuxfamily.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eTIJ5F6m7Z36KxB4W0CMlD4tzFJrJWpwAhe9kPoxolc=; b=GW4WygKwakCyx+/rQl6Fl3hYQOtnwzRyGOUOqjXSR8zjh0YhHB2153ruwL6lW4s+67 /mK7ot3yuJDNf3rhhbV4Ciq2ADUq0Mk43HDnsedLtId10nqgHoFb7+A0a8i4mRpy3L54 K/4anH4tRTGEhgKGn6S9cQkhurMx80q9IfagnSSle6c3SOkZICAc5kbb45z02wQGUawk 1Oguimf28b2U0p1ip9aYbwNU/nGe1zJXRpY0+mQC0QC/hlc3kZDOx5G1KuE69gpx57x6 LA0UuogDvcVXu36qTTu+M90qElYXzgbeFMGGXORCExb943tKensiMRyDeJuVQ5kxcIB9 XarA==
On Fri, Jul 12, 2024 at 2:32 PM Jan Claußen <jan.claussen10@xxxxxx> wrote:
>
> Hi,
>
> I have some questions about chrony. I am trying to set up chrony as local NTP server. First I tried to completely substitute systemd-timesyncd with chrony, but this turned out as quite the challenge, because at least on a Yocto system some services are dependent on systemd's timesyncd module.
>
> So to not make me suffer more than necessary figuring out how to make all these other services happy, I would like to ise chrony only as an NTP server for some other client devices, which are not directly connected to the internet. This would require me to run timesyncd and chronyd at the same time. So I would have some questions:
>
> Is it problematic to run chrony alongside timesyncd, even when only used as a server?
systemd-timesyncd implements SNTP, it periodically updates system
time. chronyd will perceive it as erratic time jumps which will
probably result in rather bad quality for external clients.
> How would I accomplish this? Online it says to use the local directive. I am not entirely sure if chrony syncs with the hardware clock here. Since RTCs are said to drift quite a lot, I would rather have chrony sync itself with the system clock
My understanding is that chronyd will simply get whatever system time there is.
> If the hardware clock indeed does sync from the RTC, what is the refclock directive needed for? Can I actually use the RTC here is this for another purpose?
I am not sure what you call a "hardware clock" here. For me RTC *is*
hardware clock.
--
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.