stx-config: enable the services by default 48/3448/1
authorJackie Huang <jackie.huang@windriver.com>
Fri, 24 Apr 2020 07:29:23 +0000 (15:29 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Fri, 24 Apr 2020 07:29:23 +0000 (15:29 +0800)
Set correct systemd variables to enable the services

Issue-ID: INF-29
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Iea55ec66b7ec305405d8ca58be7a7be73e642c44

meta-stx/recipes-core/stx-config/config-gate.inc

index ca412c4..e4cf2eb 100644 (file)
@@ -34,3 +34,13 @@ FILES_config-gate = " \
        ${sbindir}/wait_for_config_init.sh \
        ${systemd_system_unitdir}/config.service \
        "
+
+SYSTEMD_PACKAGES += "\
+       config-gate \
+       config-gate-worker \
+       "
+SYSTEMD_SERVICE_config-gate = "config.service"
+SYSTEMD_SERVICE_config-gate-worker = "worker-config-gate.service"
+
+SYSTEMD_AUTO_ENABLE_config-gate = "enable"
+SYSTEMD_AUTO_ENABLE_config-gate-worker = "enable"