"logconfig" has no effect
James Browning
jamesb192 at jamesb192.com
Sun Apr 27 15:54:01 UTC 2025
On Sunday, April 27, 2025 7:59:09 AM Pacific Daylight Time Christian Weiske
via users wrote:
> Hello,
>
>
> I'm trying to reduce the information logged by ntpd, and tried many
> "logconfig" settings in /etc/ntpsec/ntp.conf
>
> But I am not even able to disable all logging with
>
> > logconfig -allall
>
> or
>
> > logconfig -all
>
> - the log messages are always the same and are not reduced. Every
>
> couple of minutes I get:
:::big snip:::
> I'm running ntpsec on a Raspberry Pi 2 with Raspbian GNU/Linux 12
> (bookworm) and ntpsec 1.2.2+dfsg1-1+deb12u1.
>
> > # ntpd --version
> > ntpd ntpsec-1.2.2
>
> The command line that ntpsec runs is
>
> > /usr/sbin/ntpd -p /run/ntpd.pid -c /etc/ntpsec/ntp.conf -g -N -u
> > ntpsec:ntpsec
>
> When reading the documentation at
> https://docs.ntpsec.org/latest/ntp_conf.html#_miscellaneous_options,
> I'd say that my "logconfig -allall" should work.
>
> My goal is to minimize ntpd log messages and only see errors and maybe
> time adjustments.
The good news is you are configuring logging correctly.
The bad new is almost nothing actually respects or uses it.
The big current users are the Truetime & Generic refclock drivers.
Other than that and configuration glue, nothing goes near it.
Back at git-conversion, it was used by little more, we dropped those.
We should work on that a lot.
-30-
More information about the users
mailing list