From: Jackie Huang Date: Tue, 5 May 2020 09:35:33 +0000 (+0800) Subject: cgcs-patch.inc: inherit systemd to enable services X-Git-Tag: bronze-rc0~36 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=8afe1d2b0c469e117eab86c82f2fa96ea271290e;p=pti%2Frtp.git cgcs-patch.inc: inherit systemd to enable services inherit systemd to enable the following services by default: - sw-patch-controller.service - sw-patch-controller-daemon.service - sw-patch-agent.service - sw-patch.service Issue-ID: INF-82 Signed-off-by: Jackie Huang Change-Id: Ifc3ecbf5372e2e9ac0b5cc9d18e101cef0e2b052 --- diff --git a/meta-stx/recipes-core/stx-update/cgcs-patch.inc b/meta-stx/recipes-core/stx-update/cgcs-patch.inc index c506818..513ad3d 100644 --- a/meta-stx/recipes-core/stx-update/cgcs-patch.inc +++ b/meta-stx/recipes-core/stx-update/cgcs-patch.inc @@ -17,7 +17,7 @@ PACKAGES += " cgcs-patch" PACKAGES += " cgcs-patch-agent" PACKAGES += " cgcs-patch-controller" -inherit setuptools +inherit setuptools systemd RDEPENDS_cgcs-patch_append = " \ bash \ @@ -134,3 +134,18 @@ FILES_cgcs-patch-controller = " \ ${sysconfdir}/init.d/sw-patch-controller \ ${systemd_system_unitdir}/sw-patch-controller.service \ " + +SYSTEMD_PACKAGES += "cgcs-patch" +SYSTEMD_SERVICE_cgcs-patch = "sw-patch.service" +SYSTEMD_AUTO_ENABLE_cgcs-patch = "enable" + +SYSTEMD_PACKAGES += "cgcs-patch-agent" +SYSTEMD_SERVICE_cgcs-patch-agent = "sw-patch-agent.service" +SYSTEMD_AUTO_ENABLE_cgcs-patch-agent = "enable" + +SYSTEMD_PACKAGES += "cgcs-patch-controller" +SYSTEMD_SERVICE_cgcs-patch-controller = " \ + sw-patch-controller.service \ + sw-patch-controller-daemon.service \ + " +SYSTEMD_AUTO_ENABLE_cgcs-patch-controller = "enable" diff --git a/meta-stx/recipes-core/stx-update/stx-update.bb b/meta-stx/recipes-core/stx-update/stx-update.bb index a8574f6..32697ea 100644 --- a/meta-stx/recipes-core/stx-update/stx-update.bb +++ b/meta-stx/recipes-core/stx-update/stx-update.bb @@ -57,3 +57,5 @@ pkg_postinst_ontarget_${PN} () { } FILES_${PN} = " " + +DISTRO_FEATURES_BACKFILL_CONSIDERED_remove = "sysvinit"