Skip to contentSkip to conversation

sysstat: make the service start automatically

PATCH New Yu, Mingli 1 participant 1 message Jun 4, 2021

lore
Share & tools
lore

Yu, Mingli

author
#0 lore raw

PATCH 1/1 sysstat: make the service start automatically

From: Mingli Yu <[email protected]>

Make sysstat start automatically during bootup.

---
 meta/recipes-extended/sysstat/sysstat.inc | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-extended/sysstat/sysstat.inc +4 -0
index e5e134c038..f97b88d493 100644
@@ -23,6 +23,10 @@ PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir}"
 
 EXTRA_OECONF += "--disable-stripping"
 
+SYSTEMD_PACKAGES = "${PN}"
+SYSTEMD_SERVICE_${PN} = "sysstat.service"
+SYSTEMD_AUTO_ENABLE = "enable"
+
 do_configure_prepend() {
     export sa_lib_dir=${libexecdir}/sa
 }
Signature · 1 line
2.17.1