summaryrefslogtreecommitdiff
path: root/recipes-core/systemd
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2013-06-07 22:38:12 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2013-06-07 22:38:12 +0200
commit0a1b4151d3e3075b28437a98a3215e6025189b30 (patch)
treed9f4421f0c39e83f29185bb82a0ae8977f9e8b9f /recipes-core/systemd
parentba76d8768811ee0d4b5e8005497b6c19f953e691 (diff)
systemd-journald: limit journal size
Diffstat (limited to 'recipes-core/systemd')
-rw-r--r--recipes-core/systemd/systemd/journald-conf.patch13
-rw-r--r--recipes-core/systemd/systemd_git.bbappend7
2 files changed, 20 insertions, 0 deletions
diff --git a/recipes-core/systemd/systemd/journald-conf.patch b/recipes-core/systemd/systemd/journald-conf.patch
new file mode 100644
index 0000000..2c3a8c9
--- /dev/null
+++ b/recipes-core/systemd/systemd/journald-conf.patch
@@ -0,0 +1,13 @@
+--- ./git/src/journal/journald.conf.orig 2013-06-07 21:34:52.256187412 +0200
++++ ./git/src/journal/journald.conf 2013-06-07 21:50:43.089914926 +0200
+@@ -13,8 +13,8 @@
+ #Seal=yes
+ #RateLimitInterval=10s
+ #RateLimitBurst=200
+-#SystemMaxUse=
+-#SystemKeepFree=
++SystemMaxUse=10M
++SystemKeepFree=30M
+ #SystemMaxFileSize=
+ #SystemMinFileSize=
+ #RuntimeMaxUse=
diff --git a/recipes-core/systemd/systemd_git.bbappend b/recipes-core/systemd/systemd_git.bbappend
new file mode 100644
index 0000000..b93053e
--- /dev/null
+++ b/recipes-core/systemd/systemd_git.bbappend
@@ -0,0 +1,7 @@
+PRINC = "4"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI += " \
+ file://journald-conf.patch \
+"