Skip to contentSkip to conversation

sysstat: add configuration file in tmpfiles.d

PATCH In review Chen Qi 1 participant 3 messages Oct 30, 2014 – Jul 17, 2015

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

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
author
#1 lore raw

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
index 09a5d28..5e80d07 100644
@@ -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
author
#2 lore raw
In reply to Chen Qi

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-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(+)