diff options
| author | Luke Hoersten <[email protected]> | 2026-03-23 22:22:36 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-03-23 22:22:36 -0500 |
| commit | 1859f62813f0c586ea49f912944fb25efd60520f (patch) | |
| tree | 5e92465f6e24cda9f4c38c2c2c00d0c0ccd7c525 /rpi-base/files | |
| parent | b7fbbf6810d4d53ca7a0afca31134181f7025a67 (diff) | |
Fixed log rotation and log2ram sizing.
Diffstat (limited to 'rpi-base/files')
| -rw-r--r-- | rpi-base/files/journald.conf | 2 | ||||
| -rw-r--r-- | rpi-base/files/logrotate.conf | 11 |
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 |
