more frequent rotation for shorter log retention

This commit is contained in:
Daniel Micay 2025-08-17 03:16:19 -04:00
parent 931c72f9f5
commit 124dd54ef5
2 changed files with 16 additions and 1 deletions

View file

@ -33,7 +33,7 @@ SystemMaxFiles=10000
#RuntimeMaxFileSize=
#RuntimeMaxFiles=100
MaxRetentionSec={{journald_max_retention_sec}}
MaxFileSec=1day
MaxFileSec={{journald_max_file_sec}}
#ForwardToSyslog=no
#ForwardToKMsg=no
#ForwardToConsole=no

View file

@ -182,6 +182,21 @@ declare -Ar hosts_journald_system_max_file_size=(
[grapheneos.social]=1G
)
declare -Ar hosts_journald_max_file_sec=(
[ns1.staging.grapheneos.org]=12hour
[0.ns1.grapheneos.org]=12hour
[1.ns1.grapheneos.org]=12hour
[2.ns1.grapheneos.org]=12hour
[3.ns1.grapheneos.org]=12hour
[0.ns2.grapheneos.org]=12hour
[1.ns2.grapheneos.org]=12hour
[2.ns2.grapheneos.org]=12hour
[0.grapheneos.network]=12hour
[1.grapheneos.network]=12hour
[2.grapheneos.network]=12hour
[3.grapheneos.network]=12hour
)
declare -Ar hosts_journald_max_retention_sec=(
[ns1.staging.grapheneos.org]=4day
[0.ns1.grapheneos.org]=4day