src.nth.io/

summaryrefslogtreecommitdiff
path: root/rpi-base/files
diff options
context:
space:
mode:
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