mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2024-12-22 05:35:00 -05:00
replace MaxRetentionSec to stop excessive rotation
This commit is contained in:
parent
d39937fc6c
commit
e81e9feef3
@ -32,7 +32,7 @@ SystemMaxFiles=10000
|
|||||||
#RuntimeKeepFree=
|
#RuntimeKeepFree=
|
||||||
#RuntimeMaxFileSize=
|
#RuntimeMaxFileSize=
|
||||||
#RuntimeMaxFiles=100
|
#RuntimeMaxFiles=100
|
||||||
MaxRetentionSec={{journald_max_retention_sec}}
|
#MaxRetentionSec=
|
||||||
MaxFileSec=1day
|
MaxFileSec=1day
|
||||||
#ForwardToSyslog=no
|
#ForwardToSyslog=no
|
||||||
#ForwardToKMsg=no
|
#ForwardToKMsg=no
|
||||||
|
9
systemd/system/systemd-journald-vacuum.service
Normal file
9
systemd/system/systemd-journald-vacuum.service
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[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}}
|
8
systemd/system/systemd-journald-vacuum.timer
Normal file
8
systemd/system/systemd-journald-vacuum.timer
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run systemd-journald-vacuum hourly
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=hourly
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Loading…
Reference in New Issue
Block a user