sysstat: add configuration file in tmpfiles.d
v2 cover sysstat: add configuration file in tmpfiles.d
Changes since V1:
Rebased against latest master.
The following changes since commit 300f858ba07c938427ccd05a3d7220027a03d461:
local.conf.sample: Disable prelink by default (2016-03-13 22:08:55 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib ChenQi/sysstat-tmpfiles
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/sysstat-tmpfiles
Chen Qi (1):
sysstat: add configuration file in tmpfiles.d
meta/recipes-extended/sysstat/sysstat.inc | 6 ++++++ 1 file changed, 6 insertions(+)
Signature · 1 line
1.9.1
PATCH v2 1/1 sysstat: add configuration file in tmpfiles.d
In sysvinit, we create /var/log/sa via populate-volatiles.sh script and /etc/default/volatile/99_sysstat configuration file.
In systemd, we need to create a corresponding configuration file under /etc/tmpfiles.d in order to create /var/log/sa.
--- meta/recipes-extended/sysstat/sysstat.inc | 6 ++++++ 1 file changed, 6 insertions(+)
meta/recipes-extended/sysstat/sysstat.inc +6 -0
@@ -39,6 +39,12 @@ do_install() { install -d ${D}${systemd_unitdir}/system install -m 0644 ${WORKDIR}/sysstat.service ${D}${systemd_unitdir}/system sed -i -e 's#@LIBDIR@#${libdir}#g' ${D}${systemd_unitdir}/system/sysstat.service + + if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then + install -d ${D}${sysconfdir}/tmpfiles.d + echo "d ${localstatedir}/log/sa - - - -" \ + > ${D}${sysconfdir}/tmpfiles.d/sysstat.conf + fi } pkg_postinst_${PN} () {
Signature · 1 line
1.9.1