Package: ntpsec
Version: 1.2.3+dfsg1-8
Severity: normal
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
*** End of the template - remove these template lines ***
`man ntpwait` says "-n" means "Number of times to check ntpd." I read that to
mean that specifying "-n 1" should check one time and either immediately
succeed or give up. Instead, ntpwait returns 1, indicating, "The operation
failed or the command syntax was not valid."
Example:
ansible@neuron-mail:~$ # This succeeds immediately:
ansible@neuron-mail:~$ ntpwait
ansible@neuron-mail:~$ echo $?
0
ansible@neuron-mail:~$ # This fails:
ansible@neuron-mail:~$ ntpwait -n 1
ansible@neuron-mail:~$ echo $?
1
ansible@neuron-mail:~$ # Verbose gives inaccurate explanation:
ansible@neuron-mail:~$ ntpwait -n 1 -v
Waiting for ntpd to synchronize... No!
ntpd did not synchronize.
ansible@neuron-mail:~$ echo $?
1
ansible@neuron-mail:~$ # Other numbers seem OK:
ansible@neuron-mail:~$ ntpwait -n 2 -v
Waiting for ntpd to synchronize... OK! (0.0 seconds)
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