local/etc/rc.d service that runs before date being set by ntpd

From: Nuno Teixeira <eduardo_at_freebsd.org>
Date: Wed, 27 Mar 2024 09:55:24 UTC
Hello all,

On rpi4 I use a service dns/noip and found that it don't get actual date
from ntpd:

/var/log/daemon.log (today) after boot
---
<snip>
Mar 27 09:09:40 rpi4 dhclient[1183]: DHCPREQUEST on genet0 to 192.168.1.1
port 67
Mar 27 09:09:40 rpi4 dhclient[1183]: DHCPACK from 192.168.1.1
Mar 27 09:09:40 rpi4 dhclient[1183]: bound to 192.168.1.66 -- renewal in
1800 seconds.
*Jan  1 01:00:34* rpi4 noip2[1617]: v2.1.9 daemon started with NAT enabled
*Jan  1 01:00:35* rpi4 noip2[1617]: freebsdrpi4.hopto.org was already set
to 149.90.156.215.
<service noip restart>
*Mar 27 09:26:13* rpi4 noip2[1617]: v2.1.9 daemon ended.
Mar 27 09:26:13 rpi4 noip2[1887]: v2.1.9 daemon started with NAT enabled
Mar 27 09:26:14 rpi4 noip2[1887]: freebsdrpi4.hopto.org was already set to
149.90.156.215.
---

rc.conf:
ntpd_enable="YES"
ntpd_sync_on_start="YES"

Checking `rcorder /etc/rc.d/* /usr/local/etc/rc.d/*` have correct order (?):

<snip>

*/etc/rc.d/ntpdate*
...
/etc/rc.d/sdpd
/etc/rc.d/rarpd
/etc/rc.d/powerd*/etc/rc.d/ntpd*
/etc/rc.d/nscd
/usr/local/etc/rc.d/dbus
/usr/local/etc/rc.d/git_daemon*/usr/local/etc/rc.d/noip*
/etc/rc.d/rfcomm_pppd_server
/etc/rc.d/mountd
/etc/rc.d/swaplate
...

Strange that noip doesn't get correct date at boot time.

Do I missing something?

Thanks!

-- 
Nuno Teixeira
FreeBSD Committer (ports)