mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-01-03 11:00:49 -05:00
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:
parent
4dc70b8df7
commit
9638832f82
@ -32,7 +32,7 @@ SystemMaxFiles=10000
|
|||||||
#RuntimeKeepFree=
|
#RuntimeKeepFree=
|
||||||
#RuntimeMaxFileSize=
|
#RuntimeMaxFileSize=
|
||||||
#RuntimeMaxFiles=100
|
#RuntimeMaxFiles=100
|
||||||
#MaxRetentionSec=0
|
MaxRetentionSec={{journald_max_retention_sec}}
|
||||||
MaxFileSec=1day
|
MaxFileSec=1day
|
||||||
#ForwardToSyslog=no
|
#ForwardToSyslog=no
|
||||||
#ForwardToKMsg=no
|
#ForwardToKMsg=no
|
||||||
|
@ -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}}
|
|
@ -1,8 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Run systemd-journald-vacuum hourly
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnCalendar=hourly
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
Loading…
Reference in New Issue
Block a user