From 87f40c4330c94ea620b6f8ea74b8a58c57e5655e Mon Sep 17 00:00:00 2001 From: Thierry Escande <thierry.escande@huawei.com> Date: Wed, 10 Aug 2022 02:19:33 +0200 Subject: [PATCH] openharmony-standard-3.0: Start appspawn service after samgr This mofifies the appspawn service to start after the samgr one with a 2 seconds delay. Signed-off-by: Thierry Escande <thierry.escande@huawei.com> --- recipes-openharmony/openharmony/files/appspawn.service | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recipes-openharmony/openharmony/files/appspawn.service b/recipes-openharmony/openharmony/files/appspawn.service index 544cb7c0..16635e01 100644 --- a/recipes-openharmony/openharmony/files/appspawn.service +++ b/recipes-openharmony/openharmony/files/appspawn.service @@ -1,9 +1,12 @@ [Unit] Description=OpenHarmony Appspawn service -Requires=hilogd.service +Requires=samgr.service +After=samgr.service [Service] Type=exec +# Delay execution by 2 secs after samgr.service +ExecStartPre=/bin/sleep 2 ExecStartPre=mkdir -p /data/app ExecStart=/usr/bin/appspawn -- GitLab