From fffed612cb14f23525139c75b2a089836cc237d4 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Wed, 21 Feb 2024 14:41:37 -0800 Subject: [PATCH] adjust rsyslogd to log cron to it's own file, and to not include cron or mail in main syslog file --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 091e0bb..1752045 100644 --- a/install.sh +++ b/install.sh @@ -113,6 +113,11 @@ sed -i 's|.*RuntimeMaxFiles=.*|RuntimeMaxFiles=10|g' /etc/systemd/journald.conf sed -i 's|.*MaxRetentionSec=.*|MaxRetentionSec=1week|g' /etc/systemd/journald.conf systemctl restart systemd-journald.service +# adjust rsyslogd to log cron to it's own file, and to not include cron or mail in main syslog file +sed -i 's|^#cron\.\*|cron\.\*|' /etc/rsyslog.d/50-default.conf +sed -i 's|^\*\.\*;auth,authpriv\.none|\*\.\*;auth,authpriv\.none;mail\.none;cron\.none|' /etc/rsyslog.d/50-default.conf +systemctl restart rsyslog + # install some handy extra packages DEBIAN_FRONTEND=noninteractive apt-get -y install gdu exa pwgen net-tools