Browse Source

fixed journald config

Toastie 1 year ago
parent
commit
dd17f4eb77
1 changed files with 4 additions and 4 deletions
  1. 4 4
      bootstrap-bullseye.sh

+ 4 - 4
bootstrap-bullseye.sh

@@ -203,11 +203,11 @@ sed -i 's/#LLMNR=yes/LLMNR=no/' /etc/systemd/resolved.conf
 systemctl enable systemd-resolved
 systemctl enable systemd-resolved
 
 
 # Limit journald logging to 1 month, 1 GB in total and split files per week
 # 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=1week
-MaxFileSec=1m
 EOL
 EOL
 
 
 # Show errors in motd
 # Show errors in motd