systemd: Keep the log and address space size down of the journald
This commit is contained in:
parent
f4bf38e765
commit
78f6e55ed9
|
@ -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
|
|
@ -1,7 +1,9 @@
|
||||||
S_THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
S_THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||||
FILESPATH =. "${@base_set_filespath(["${S_THISDIR}/${PN}"], d)}:"
|
FILESPATH =. "${@base_set_filespath(["${S_THISDIR}/${PN}"], d)}:"
|
||||||
|
|
||||||
PRINC="12"
|
PRINC="13"
|
||||||
|
|
||||||
|
SRC_URI += "file://journald.conf"
|
||||||
|
|
||||||
# Disable depedency on dbus
|
# Disable depedency on dbus
|
||||||
RDEPENDS_${PN} = ""
|
RDEPENDS_${PN} = ""
|
||||||
|
@ -29,3 +31,7 @@ pkg_postinst_${PN}_append () {
|
||||||
fi
|
fi
|
||||||
done ; echo
|
done ; echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do_install_append() {
|
||||||
|
install -m 0644 ${WORKDIR}/journald.conf ${D}${sysconfdir}/systemd/
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue