From 1859f62813f0c586ea49f912944fb25efd60520f Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Mon, 23 Mar 2026 22:22:36 -0500 Subject: Fixed log rotation and log2ram sizing. --- rpi-base/files/journald.conf | 2 ++ rpi-base/files/logrotate.conf | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 rpi-base/files/journald.conf create mode 100644 rpi-base/files/logrotate.conf (limited to 'rpi-base/files') diff --git a/rpi-base/files/journald.conf b/rpi-base/files/journald.conf new file mode 100644 index 0000000..523f571 --- /dev/null +++ b/rpi-base/files/journald.conf @@ -0,0 +1,2 @@ +[Journal] +SystemMaxUse=100M diff --git a/rpi-base/files/logrotate.conf b/rpi-base/files/logrotate.conf new file mode 100644 index 0000000..e6690c0 --- /dev/null +++ b/rpi-base/files/logrotate.conf @@ -0,0 +1,11 @@ +# Sized to fit within log2ram's RAM disk. +# Defaults: daily, 7 rotations, compress immediately, max 50M per log. +# Worst case per log: 50M active + 7 x compressed ~ 100M + +daily +su root adm +rotate 7 +maxsize 50M +create +compress +include /etc/logrotate.d -- cgit v1.2.3