systemd-conf: journald.conf: default config with log rotation parameters
Use smaller journal file size. Reapply persistent logging. Install default journald.conf file for all machine targets - as long no machine specific file is available. BugzID: 63714 Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
This commit is contained in:
parent
bccaff4f2e
commit
d2a11ecbc9
|
|
@ -0,0 +1,43 @@
|
||||||
|
# This file is part of systemd.
|
||||||
|
#
|
||||||
|
# systemd is free software; you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU Lesser General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2.1 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# Entries in this file show the compile time defaults.
|
||||||
|
# You can change settings by editing this file.
|
||||||
|
# Defaults can be restored by simply deleting this file.
|
||||||
|
#
|
||||||
|
# See journald.conf(5) for details.
|
||||||
|
|
||||||
|
[Journal]
|
||||||
|
Storage=persistent
|
||||||
|
#Compress=yes
|
||||||
|
#Seal=yes
|
||||||
|
#SplitMode=uid
|
||||||
|
#SyncIntervalSec=5m
|
||||||
|
#RateLimitIntervalSec=30s
|
||||||
|
#RateLimitBurst=10000
|
||||||
|
SystemMaxUse=256M
|
||||||
|
#SystemKeepFree=
|
||||||
|
SystemMaxFileSize=2M
|
||||||
|
#SystemMaxFiles=100
|
||||||
|
RuntimeMaxUse=16M
|
||||||
|
#RuntimeKeepFree=
|
||||||
|
#RuntimeMaxFileSize=
|
||||||
|
#RuntimeMaxFiles=100
|
||||||
|
#MaxRetentionSec=
|
||||||
|
#MaxFileSec=1month
|
||||||
|
ForwardToSyslog=yes
|
||||||
|
#ForwardToKMsg=no
|
||||||
|
#ForwardToConsole=no
|
||||||
|
#ForwardToWall=yes
|
||||||
|
#TTYPath=/dev/console
|
||||||
|
#MaxLevelStore=debug
|
||||||
|
#MaxLevelSyslog=debug
|
||||||
|
#MaxLevelKMsg=notice
|
||||||
|
#MaxLevelConsole=info
|
||||||
|
#MaxLevelWall=emerg
|
||||||
|
#LineMax=48K
|
||||||
|
#ReadKMsg=yes
|
||||||
|
|
@ -2,9 +2,13 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${MACHINE}/${PN}:${THISDIR}/${PN}:"
|
||||||
|
|
||||||
SRC_URI_append = " \
|
SRC_URI_append = " \
|
||||||
file://system.conf \
|
file://system.conf \
|
||||||
|
file://journald.conf \
|
||||||
"
|
"
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
mkdir -p ${D}/etc/systemd/
|
mkdir -p ${D}/etc/systemd/
|
||||||
cp ${WORKDIR}/system.conf ${D}/etc/systemd
|
cp ${WORKDIR}/system.conf ${D}/etc/systemd
|
||||||
|
|
||||||
|
install -d ${D}${sysconfdir}/systemd
|
||||||
|
install -m 644 ${WORKDIR}/journald.conf ${D}${sysconfdir}/systemd
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue