mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
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)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1be5812f17
commit
045d0c282f
@@ -49,7 +49,7 @@ do_install() {
|
|||||||
if ${@bb.utils.contains('PACKAGECONFIG', 'cron', 'false', 'true', d)}; then
|
if ${@bb.utils.contains('PACKAGECONFIG', 'cron', 'false', 'true', d)}; then
|
||||||
install -d ${D}${systemd_unitdir}/system
|
install -d ${D}${systemd_unitdir}/system
|
||||||
install -m 0644 ${WORKDIR}/sysstat.service ${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
|
sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}${systemd_unitdir}/system/sysstat.service
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -62,6 +62,6 @@ pkg_postinst_${PN} () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} += "${libdir}/sa ${systemd_system_unitdir}"
|
FILES_${PN} += "${systemd_system_unitdir}"
|
||||||
|
|
||||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ Description=Resets System Activity Logs
|
|||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
User=root
|
User=root
|
||||||
ExecStart=@LIBDIR@/sa/sa1 --boot
|
ExecStart=@LIBEXECDIR@/sa/sa1 --boot
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user