systemd: Keep the log and address space size down of the journald

This commit is contained in:
Holger Hans Peter Freyther 2012-09-19 21:18:18 +08:00 committed by Holger Hans Peter Freyther
parent f4bf38e765
commit 78f6e55ed9
2 changed files with 41 additions and 1 deletions

View File

@ -0,0 +1,34 @@
# 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.
#
# See journald.conf(5) for details
# Always use a volatile storage and keep the log size down but more
# importantly the address space of the journald
[Journal]
Storage=volatile
#Compress=yes
#Seal=no
#RateLimitInterval=10s
#RateLimitBurst=200
#SystemMaxUse=10
#SystemKeepFree=
#SystemMaxFileSize=
#SystemMinFileSize=
RuntimeMaxUse=648K
#RuntimeKeepFree=
#RuntimeMaxFileSize=
#RuntimeMinFileSize=
#ForwardToSyslog=yes
#ForwardToKMsg=no
#ForwardToConsole=no
#TTYPath=/dev/console
#MaxLevelStore=debug
#MaxLevelSyslog=debug
#MaxLevelKMsg=notice
#MaxLevelConsole=info

View File

@ -1,7 +1,9 @@
S_THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
FILESPATH =. "${@base_set_filespath(["${S_THISDIR}/${PN}"], d)}:"
PRINC="12"
PRINC="13"
SRC_URI += "file://journald.conf"
# Disable depedency on dbus
RDEPENDS_${PN} = ""
@ -29,3 +31,7 @@ pkg_postinst_${PN}_append () {
fi
done ; echo
}
do_install_append() {
install -m 0644 ${WORKDIR}/journald.conf ${D}${sysconfdir}/systemd/
}