From eb453eb7788a8a2e6dae8806b6a9a85fa8198fc2 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 10 Jul 2021 17:17:55 +0200 Subject: rotate syslog base on size only (avoid out of memory situtions of /tmp filesystem in RAM) --- template/etc/newsyslog.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/etc/newsyslog.conf b/template/etc/newsyslog.conf index b20d762..dd091a1 100644 --- a/template/etc/newsyslog.conf +++ b/template/etc/newsyslog.conf @@ -4,9 +4,9 @@ # # logfile_name owner:group mode count size when flags /var/cron/log root:wheel 600 3 10 * Z -/var/log/authlog root:wheel 640 7 * 168 Z +/var/log/authlog root:wheel 640 7 30 * Z /var/log/daemon 640 5 30 * Z /var/log/messages 644 5 30 * Z -/var/log/secure 600 7 * 168 Z +/var/log/secure 600 7 30 * Z /var/log/wtmp 644 7 * $W6D4 B /var/log/pflog 600 3 25 * ZB "pkill -HUP -u root -U root -t - -x pflogd" -- cgit v1.2.3-54-g00ecf