diff options
| -rw-r--r-- | meta/recipes-extended/sysstat/sysstat.inc | 4 | ||||
| -rw-r--r-- | meta/recipes-extended/sysstat/sysstat/sysstat.service | 2 |
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 | ||
| 65 | FILES_${PN} += "${libdir}/sa ${systemd_system_unitdir}" | 65 | FILES_${PN} += "${systemd_system_unitdir}" |
| 66 | 66 | ||
| 67 | TARGET_CC_ARCH += "${LDFLAGS}" | 67 | TARGET_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 | |||
| 5 | Type=oneshot | 5 | Type=oneshot |
| 6 | RemainAfterExit=yes | 6 | RemainAfterExit=yes |
| 7 | User=root | 7 | User=root |
| 8 | ExecStart=@LIBDIR@/sa/sa1 --boot | 8 | ExecStart=@LIBEXECDIR@/sa/sa1 --boot |
| 9 | 9 | ||
| 10 | [Install] | 10 | [Install] |
| 11 | WantedBy=multi-user.target | 11 | WantedBy=multi-user.target |
