Package Name
chrony
Maintainer
@mlichvar
OpenWrt Version
24.10.4
OpenWrt Target/Subtarget
lantiq/xrx200
Steps to Reproduce
- Start the device
- Check if the
hotplug.ntp event has been recieved through udev. For example by placing a script in /etc/hotplug.d/ntp to log something.
Actual Behaviour
chrony's init script starts chronyd as well as /usr/sbin/chrony-hotplug in short succession (through procd). The latter then proceeds to immediately call /usr/bin/chronyc waitsync .... On my device (Fritzbox 7490; but I'd assume this is bound to happen on any not-so-fast hardware) the chronyd process doesn't come up fast enough most of the times. So chronyc will fail with "Could not open connection to daemon" and the stratum notification event never get's sent.
This for example breaks the DNSSEC after NTP for unbound.
I fixed it locally with a sleep 10 at the top of /usr/sbin/chrony-hotplug but that obviously is just a hack and no guarantee whatsoever.
Confirmation Checklist
Package Name
chrony
Maintainer
@mlichvar
OpenWrt Version
24.10.4
OpenWrt Target/Subtarget
lantiq/xrx200
Steps to Reproduce
hotplug.ntpevent has been recieved through udev. For example by placing a script in/etc/hotplug.d/ntpto log something.Actual Behaviour
chrony's init script starts
chronydas well as/usr/sbin/chrony-hotplugin short succession (through procd). The latter then proceeds to immediately call/usr/bin/chronyc waitsync .... On my device (Fritzbox 7490; but I'd assume this is bound to happen on any not-so-fast hardware) thechronydprocess doesn't come up fast enough most of the times. Sochronycwill fail with "Could not open connection to daemon" and the stratum notification event never get's sent.This for example breaks the DNSSEC after NTP for
unbound.I fixed it locally with a
sleep 10at the top of/usr/sbin/chrony-hotplugbut that obviously is just a hack and no guarantee whatsoever.Confirmation Checklist