Date: Tue, 6 Apr 2021 18:18:10 -0700 From: Aleksandr Miroslav <alexmiroslav@gmail.com> To: freebsd-questions@freebsd.org Subject: newsyslog.conf and included confs, second reference to logfile being ignored Message-ID: <CACcSE1wvmRX%2BW7izM89-NF8RqTcevp4_6%2BtL_%2BCt8x_znCgQnw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
In my /etc/newsyslog.conf I have the following lines: /var/log/maillog 640 7 * @T00 JC [...] <include> /usr/local/etc/newsyslog.conf.d/* These are standard entries, set by the OS on release. In /usr/local/etc/newsyslog.conf.d, I have a conf file that is placed there by Ansible, that says this: /var/log/maillog 644 50 * $M1D0 JC It looks like newsyslog sees the standard entry for the maillog and uses that, instead of the one I installed in the included conf file. I would have assumed the included conf file would have taken precedence, but I guess not. I would like to have just installed this extra conf file and not touch the system installed file. Is the only way around this problem to replace /etc/newsyslog.conf entirely? Or move the include to the beginning in that file? Alex
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACcSE1wvmRX%2BW7izM89-NF8RqTcevp4_6%2BtL_%2BCt8x_znCgQnw>