diff --git a/recipes-openharmony/openharmony/files/installs.service b/recipes-openharmony/openharmony/files/installs.service new file mode 100644 index 0000000000000000000000000000000000000000..8de5e16908a3aceaff96f918b597dad0a9b35bee --- /dev/null +++ b/recipes-openharmony/openharmony/files/installs.service @@ -0,0 +1,13 @@ +[Unit] +Description=OpenHarmony Installs service +Requires=samgr.service +After=samgr.service + +[Service] +Type=exec +# Delay execution by 2 secs after samgr.service +ExecStartPre=/bin/sleep 2 +ExecStart=/usr/bin/installs + +[Install] +WantedBy=multi-user.target diff --git a/recipes-openharmony/openharmony/files/installs.service.license b/recipes-openharmony/openharmony/files/installs.service.license new file mode 100644 index 0000000000000000000000000000000000000000..98a0b3f4a5b8db268215a128c7d06e0a10897e73 --- /dev/null +++ b/recipes-openharmony/openharmony/files/installs.service.license @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 diff --git a/recipes-openharmony/openharmony/openharmony-standard_3.0.bb b/recipes-openharmony/openharmony/openharmony-standard_3.0.bb index a114185fca8a6cdbd742a170f75ee0624ff18315..ac628db588c78b208a6f19253089e5ac9fd4cf53 100644 --- a/recipes-openharmony/openharmony/openharmony-standard_3.0.bb +++ b/recipes-openharmony/openharmony/openharmony-standard_3.0.bb @@ -458,6 +458,14 @@ RDEPENDS:${PN}-ptest += "${PN}-appspawn-ptest" # //foundation/appexecfwk/standard component PACKAGES =+ "${PN}-appexecfwk" +SYSTEMD_PACKAGES += "${PN}-appexecfwk" +SYSTEMD_SERVICE:${PN}-appexecfwk = "installs.service" +SRC_URI += "file://installs.service" +do_install:append() { + install -d ${D}/${systemd_unitdir}/system + install -m 644 ${WORKDIR}/installs.service ${D}${systemd_unitdir}/system/ + rm -f ${D}${sysconfdir}/openharmony/init/installs.cfg +} FILES:${PN}-appexecfwk = "\ ${bindir}/appexec \ ${bindir}/bm \