summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2019-11-18 07:23:35 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-19 00:24:22 +0000
commitc4bd636938947bd3040473ac328810e0739c73e0 (patch)
treecda3730460222e80ffeea334e9eaa30b63309cb6 /meta/recipes-extended
parente97c2d769f7b4ae7c2a76ebfff80b8d50d02d881 (diff)
downloadpoky-c4bd636938947bd3040473ac328810e0739c73e0.tar.gz
sysstat: Correct our systemd unit file
In commit 8862f21e (sysstat: 12.1.3 -> 12.1.6), sa_lib_dir was changed from "${libdir}/sa" to "${libexecdir}/sa" to avoid problems with multilib. However, the systemd unit file was not changed accordingly, which lead to the following error when trying to start the service: systemd[4698]: sysstat.service: Failed at step EXEC spawning /usr/lib/sa/sa1: No such file or directory (From OE-Core rev: 0fd691b9801b5313ff2e2c2cd5ca13fd50063235) (From OE-Core rev: e5c5ffb048e9ebce333d855254ef88eda2f3bf6b) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/sysstat/sysstat.inc4
-rw-r--r--meta/recipes-extended/sysstat/sysstat/sysstat.service2
2 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-extended/sysstat/sysstat.inc b/meta/recipes-extended/sysstat/sysstat.inc
index 5a7d2114ca..9394090136 100644
--- a/meta/recipes-extended/sysstat/sysstat.inc
+++ b/meta/recipes-extended/sysstat/sysstat.inc
@@ -49,7 +49,7 @@ do_install() {
49 if ${@bb.utils.contains('PACKAGECONFIG', 'cron', 'false', 'true', d)}; then 49 if ${@bb.utils.contains('PACKAGECONFIG', 'cron', 'false', 'true', d)}; then
50 install -d ${D}${systemd_unitdir}/system 50 install -d ${D}${systemd_unitdir}/system
51 install -m 0644 ${WORKDIR}/sysstat.service ${D}${systemd_unitdir}/system 51 install -m 0644 ${WORKDIR}/sysstat.service ${D}${systemd_unitdir}/system
52 sed -i -e 's#@LIBDIR@#${libdir}#g' ${D}${systemd_unitdir}/system/sysstat.service 52 sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}${systemd_unitdir}/system/sysstat.service
53 fi 53 fi
54 fi 54 fi
55} 55}
@@ -62,6 +62,6 @@ pkg_postinst_${PN} () {
62 fi 62 fi
63} 63}
64 64
65FILES_${PN} += "${libdir}/sa ${systemd_system_unitdir}" 65FILES_${PN} += "${systemd_system_unitdir}"
66 66
67TARGET_CC_ARCH += "${LDFLAGS}" 67TARGET_CC_ARCH += "${LDFLAGS}"
diff --git a/meta/recipes-extended/sysstat/sysstat/sysstat.service b/meta/recipes-extended/sysstat/sysstat/sysstat.service
index aff07109f5..ca46befb99 100644
--- a/meta/recipes-extended/sysstat/sysstat/sysstat.service
+++ b/meta/recipes-extended/sysstat/sysstat/sysstat.service
@@ -5,7 +5,7 @@ Description=Resets System Activity Logs
5Type=oneshot 5Type=oneshot
6RemainAfterExit=yes 6RemainAfterExit=yes
7User=root 7User=root
8ExecStart=@LIBDIR@/sa/sa1 --boot 8ExecStart=@LIBEXECDIR@/sa/sa1 --boot
9 9
10[Install] 10[Install]
11WantedBy=multi-user.target 11WantedBy=multi-user.target