diff --git a/etc/systemd/journald.conf b/etc/systemd/journald.conf index 6a5e393..2eb8439 100644 --- a/etc/systemd/journald.conf +++ b/etc/systemd/journald.conf @@ -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 diff --git a/hosts.sh b/hosts.sh index f515b8c..642bea6 100644 --- a/hosts.sh +++ b/hosts.sh @@ -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