catch-all daemon.info entry in syslog.conf is a bit unhelpful

From: Yuri Pankov <yuripv_at_ftml.net>
Date: Sat, 17 Apr 2021 20:08:54 +0300
I understand it's been quite some time since it was added, but I have
been bitten by it just now.  I am adding per-daemon .conf files for
ports in /usr/local/etc/syslog.d/ and noticed that none of them were
working.

An example entry is:

$ cat /usr/local/etc/syslog.d/dhcpd.conf
!dhcpd
*.*     /var/log/dhcpd.log

Then I noticed the daemon.info entry in /etc/syslog.conf and had to
workaround it like below:

!-dhcpd
daemon.info                                     /var/log/daemon.log
!+dhcpd

Given the above, I'm wondering if we could move the daemon.info entry to
the bottom *after* we read the include dirs, so it would only select
everything that is not handled already?
Received on Sat Apr 17 2021 - 15:08:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:28 UTC