sysstat: add configuration file in tmpfiles.d
cover sysstat: add configuration file in tmpfiles.d
The following changes since commit 4143f3b0ce0d0c52f5b0babc1bb16ac0ac9610eb:
nativesdk-cmake: Adjust toolchain paths dynamically (2014-10-24 21:59:34 +0100)
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 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
@@ -25,6 +25,12 @@ do_install() { rm -rf ${D}/var install -d ${D}/etc/default/volatiles install -m 0644 ${WORKDIR}/99_sysstat ${D}/etc/default/volatiles + + 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
ping
//Chen Qi
Quoted 15 lines · Chen Qi
The following changes since commit
4143f3b0ce0d0c52f5b0babc1bb16ac0ac9610eb:nativesdk-cmake: Adjust toolchain paths dynamically (2014-10-24 21:59:34 +0100)are available in the git repository at:
git://git.openembedded.org/openembedded-core-contribChenQi/sysstat-tmpfiles
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/sysstat-tmpfilesChen Qi (1):
sysstat: add configuration file in tmpfiles.dmeta/recipes-extended/sysstat/sysstat.inc | 6 ++++++ 1 file changed, 6 insertions(+)