Date: Tue, 22 Nov 2016 18:32:42 +0100 From: Niklaas Baudet von Gersdorff <stdin@niklaas.eu> To: freebsd-questions@freebsd.org Subject: Overwriting /etc/newsyslog.conf Message-ID: <20161122173241.r4ffmsoigh4rx7b2@box-hlm-03.niklaas.eu>
next in thread | raw e-mail | index | archive | help
I want to change the existing entry in /etc/newsyslog.conf for
/var/log/maillog
/var/log/maillog 640 7 * @T00 JC
to save more than 7 rotations e.g.,
/var/log/maillog 640 10 * @T00 JC
I want to refrain from changing /etc/newsyslog.conf directly
(maybe the file will be updated future releases). So I thought
about adding the line above to
/usr/local/etc/newsyslog.conf.d/custom.conf that is included in
/etc/newsyslog.conf.
Will newsyslog take the first occurrence (in /etc/newsyslog.conf)
or the last one (in this case in
/usr/local/etc/newsyslog.conf.d/custom.conf) of
/var/log/maillog's entry to perform log rotation accordingly?
I tried to find a comment on this in newsyslog.conf(5) but wasn't
successful. Does anybody have experience with this?
Niklaas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161122173241.r4ffmsoigh4rx7b2>
