systemd-conf: changed journald storage to persistent

With persistent storage systemd journal logs don't get lost upon reboot.
Limited use of persistent memory with SystemMaxUse to 256M.

BugzID: 61999

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
This commit is contained in:
Tobias Jäggi 2020-03-11 16:34:38 +01:00 committed by Alexandre Bard
parent 65ea5940ac
commit dab85f7b40
2 changed files with 44 additions and 1 deletions

View File

@ -0,0 +1,42 @@
From 6050a8a8110d6521605914b2a246f7d9f835fea4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tobias=20J=C3=A4ggi?= <tobias.jaeggi@netmodule.com>
Date: Wed, 11 Mar 2020 16:01:39 +0100
Subject: [PATCH] changed journald storage to persistent
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
With persistent storage systemd journal logs don't get lost upon reboot.
Limited use of persistent memory with SystemMaxUse to 256M.
BugzID: 61999
Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
---
src/journal/journald.conf | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/journal/journald.conf b/src/journal/journald.conf
index 2f1c661153..617ed51148 100644
--- a/src/journal/journald.conf
+++ b/src/journal/journald.conf
@@ -12,14 +12,14 @@
# See journald.conf(5) for details.
[Journal]
-#Storage=auto
+Storage=persistent
#Compress=yes
#Seal=yes
#SplitMode=uid
#SyncIntervalSec=5m
#RateLimitIntervalSec=30s
#RateLimitBurst=10000
-#SystemMaxUse=
+SystemMaxUse=256M
#SystemKeepFree=
#SystemMaxFileSize=
#SystemMaxFiles=100
--
2.11.0

View File

@ -2,7 +2,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${MACHINE}/${PN}:${THISDIR}/${PN}:"
SRC_URI_append = " \
file://system.conf \
"
file://0001-changed-journald-storage-to-persistent.patch \
"
do_install_append() {
mkdir -p ${D}/etc/systemd/