Azure Rocky9 chronyd

my workaround:
systemctl edit chronyd.service
and add this lines:
[Unit]
Description=NTP client/server
Documentation=man:chronyd(8) man:chrony.conf(5)
Wants=network-online.target
After=network-online.target ntpdate.service sntp.service ntpd.service
Conflicts=ntpd.service systemd-timesyncd.service
ConditionCapability=CAP_SYS_TIME

And save. After this shutdown -r now and service chronyd - GREEN(OK)
Key moments is:

  1. add this line:
    Wants=network-online.target
  2. modify second line to :
    After=network-online.target ntpdate.service sntp.service ntpd.service

why did I do that?
I assumed that chronyd started before the network interface went up.
as a consequence - chronyd could not find out the IP address of the 2.pool.ntp.org
i reconfigured the startup of the chronyd daemon so that it would start after UP the network interface.

Serg

3 Likes