* [PATCH 0/1] sysstat: add configuration file in tmpfiles.d
@ 2014-10-30 10:18 Chen Qi
2014-10-30 10:18 ` [PATCH 1/1] " Chen Qi
2015-07-17 8:04 ` [PATCH 0/1] " ChenQi
0 siblings, 2 replies; 3+ messages in thread
From: Chen Qi @ 2014-10-30 10:18 UTC (permalink / raw)
To: openembedded-core
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(+)
--
1.9.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] sysstat: add configuration file in tmpfiles.d
2014-10-30 10:18 [PATCH 0/1] sysstat: add configuration file in tmpfiles.d Chen Qi
@ 2014-10-30 10:18 ` Chen Qi
2015-07-17 8:04 ` [PATCH 0/1] " ChenQi
1 sibling, 0 replies; 3+ messages in thread
From: Chen Qi @ 2014-10-30 10:18 UTC (permalink / raw)
To: openembedded-core
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.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
meta/recipes-extended/sysstat/sysstat.inc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/recipes-extended/sysstat/sysstat.inc b/meta/recipes-extended/sysstat/sysstat.inc
index 09a5d28..5e80d07 100644
--- a/meta/recipes-extended/sysstat/sysstat.inc
+++ b/meta/recipes-extended/sysstat/sysstat.inc
@@ -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} () {
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 0/1] sysstat: add configuration file in tmpfiles.d
2014-10-30 10:18 [PATCH 0/1] sysstat: add configuration file in tmpfiles.d Chen Qi
2014-10-30 10:18 ` [PATCH 1/1] " Chen Qi
@ 2015-07-17 8:04 ` ChenQi
1 sibling, 0 replies; 3+ messages in thread
From: ChenQi @ 2015-07-17 8:04 UTC (permalink / raw)
To: openembedded-core
ping
//Chen Qi
On 10/30/2014 06:18 PM, Chen Qi wrote:
> 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(+)
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-07-17 8:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-30 10:18 [PATCH 0/1] sysstat: add configuration file in tmpfiles.d Chen Qi
2014-10-30 10:18 ` [PATCH 1/1] " Chen Qi
2015-07-17 8:04 ` [PATCH 0/1] " ChenQi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox