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
commit9ee79301d20e440383403afb46174c5dd8cb6c5c (patch)
tree782dcb9201ed412d7fb5f009e3a45ffb085767fd /recipes-core/systemd
parent90fe2d73ec3fcb040741f01b267d1264ecaad077 (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 \
+"