|
@@ -203,11 +203,11 @@ sed -i 's/#LLMNR=yes/LLMNR=no/' /etc/systemd/resolved.conf
|
|
|
systemctl enable systemd-resolved
|
|
|
|
|
|
# Limit journald logging to 1 month, 1 GB in total and split files per week
|
|
|
-cat >>/etc/systemd/journald.conf <<EOL
|
|
|
-# Custom settings
|
|
|
-MaxFileSec=1G
|
|
|
+mkdir -p /etc/systemd/journald.conf.d/
|
|
|
+cat >/etc/systemd/journald.conf.d/retention.conf <<EOL
|
|
|
+MaxRetentionSec=1month
|
|
|
+SystemMaxUse=1G
|
|
|
MaxFileSec=1week
|
|
|
-MaxFileSec=1m
|
|
|
EOL
|
|
|
|
|
|
# Show errors in motd
|