switch back to MaxRetentionSec now that it's fixed

The fix for this causing excessive log rotation was backported to systemd 256.5.
This commit is contained in:
Daniel Micay 2024-08-18 19:35:23 -04:00
parent 4dc70b8df7
commit 9638832f82
3 changed files with 1 additions and 18 deletions

View File

@ -32,7 +32,7 @@ SystemMaxFiles=10000
#RuntimeKeepFree=
#RuntimeMaxFileSize=
#RuntimeMaxFiles=100
#MaxRetentionSec=0
MaxRetentionSec={{journald_max_retention_sec}}
MaxFileSec=1day
#ForwardToSyslog=no
#ForwardToKMsg=no

View File

@ -1,9 +0,0 @@
[Unit]
Description=Vacuum journald logs
After=systemd-journald.service
[Service]
Type=oneshot
User=root
Group=root
ExecStart=/usr/bin/journalctl --vacuum-time={{journald_max_retention_sec}}

View File

@ -1,8 +0,0 @@
[Unit]
Description=Run systemd-journald-vacuum hourly
[Timer]
OnCalendar=hourly
[Install]
WantedBy=timers.target