src.nth.io/

summaryrefslogtreecommitdiff
path: root/rpi-base/files
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-03-23 22:22:36 -0500
committerLuke Hoersten <[email protected]>2026-03-23 22:22:36 -0500
commit1859f62813f0c586ea49f912944fb25efd60520f (patch)
tree5e92465f6e24cda9f4c38c2c2c00d0c0ccd7c525 /rpi-base/files
parentb7fbbf6810d4d53ca7a0afca31134181f7025a67 (diff)
Fixed log rotation and log2ram sizing.
Diffstat (limited to 'rpi-base/files')
-rw-r--r--rpi-base/files/journald.conf2
-rw-r--r--rpi-base/files/logrotate.conf11
2 files changed, 13 insertions, 0 deletions
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