Package: ntpsec Version: 1.2.3+dfsg1-8 Severity: normal Dear Maintainer,
This may be considered either a bug in functionality or a bug in the documentation. `man ntpwait` says, "The ntpwait program blocks until ntpd is in synchronized state." That is only true if the ntpsec service is already running. I have a cron job that runs at boot time and should wait for NTP synchronization. Apparently the cron service can start before the ntpsec service, so using ntpwait in the script causes immediate failure instead of waiting for ntpd (ntpsec) to start and synchronize. Example: ansible@neuron-mail:~$ sudo systemctl stop ntpsec ansible@neuron-mail:~$ # This fails immediately. ansible@neuron-mail:~$ ntpwait localhost: timed out, nothing received ***Socket error; probably ntpd is not running Leap status not available ansible@neuron-mail:~$ echo $? 1 ansible@neuron-mail:~$ sudo systemctl start ntpsec ansible@neuron-mail:~$ # This works as expected. ansible@neuron-mail:~$ ntpwait ansible@neuron-mail:~$ echo $? 0 ansible@neuron-mail:~$ -- System Information: Debian Release: 13.5 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.12.88+deb13-amd64 (SMP w/1 CPU thread; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages ntpsec depends on: ii adduser 3.152 ii init-system-helpers 1.69~deb13u1 ii libbsd0 0.12.2-2 ii libc6 2.41-12+deb13u3 ii libcap2 1:2.75-10+deb13u1+b1 ii libssl3t64 3.5.6-1~deb13u1 ii netbase 6.5 ii python3 3.13.5-1 ii python3-ntp 1.2.3+dfsg1-8 ii tzdata 2026b-0+deb13u1 Versions of packages ntpsec recommends: ii cron [cron-daemon] 3.0pl1-197 ii systemd 257.13-1~deb13u1 Versions of packages ntpsec suggests: ii apparmor 4.1.0-1 ii certbot 4.0.0-2+deb13u1 pn ntpsec-doc <none> pn ntpsec-ntpviz <none> -- Configuration Files: /etc/default/ntpsec changed: NTPD_OPTS="-g" IGNORE_DHCP='yes' NTPSEC_CERTBOT_CERT_NAME="" /etc/ntpsec/ntp.conf changed: interface listen all restrict default ignore restrict source nomodify noquery limited restrict 127.0.0.1 restrict ::1 pool pool.ntp.org iburst burst pool 0.debian.pool.ntp.org iburst burst pool 1.debian.pool.ntp.org iburst burst pool 2.debian.pool.ntp.org iburst burst pool 3.debian.pool.ntp.org iburst burst driftfile /var/lib/ntp/ntp.drift statistics loopstats peerstats clockstats filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable filegen clockstats file clockstats type day enable -- no debconf information

