From c6fb12f5116062d3ebdf2502800d1acd3cdb55f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan-Simon=20M=C3=B6ller?= Date: Thu, 12 Oct 2017 12:05:51 +0200 Subject: [PATCH] Add 5 sec delay for service check to ensure all services (weston/homescreen) are really up as they might still be starting once we reach the login prompt. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I1e16146704f1b11d576ffab1524b279e4be5a82c Bug-AGL: SPEC-950 Signed-off-by: Jan-Simon Möller --- common/scripts/service-check-gfx.sh | 3 +++ common/scripts/service-check-nogfx.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/common/scripts/service-check-gfx.sh b/common/scripts/service-check-gfx.sh index 2a5353b..dfde77b 100755 --- a/common/scripts/service-check-gfx.sh +++ b/common/scripts/service-check-gfx.sh @@ -6,6 +6,9 @@ REQUIREDSERVICES="afm-system-daemon.service afm-user-daemon.service connman.serv ALL="${REQUIREDSOCKETS} ${REQUIREDSERVICES}" RESULT="unknown" +# add delay for services to fully start +sleep 5 + for i in ${ALL} ; do echo -e "\n########## Test for service ${i} being active ##########\n" systemctl is-active ${i} >/dev/null 2>&1 diff --git a/common/scripts/service-check-nogfx.sh b/common/scripts/service-check-nogfx.sh index 62d1b3d..e893cdb 100755 --- a/common/scripts/service-check-nogfx.sh +++ b/common/scripts/service-check-nogfx.sh @@ -6,6 +6,9 @@ REQUIREDSERVICES="afm-system-daemon.service afm-user-daemon.service connman.serv ALL="${REQUIREDSOCKETS} ${REQUIREDSERVICES}" RESULT="unknown" +# add delay for services to fully start +sleep 5 + for i in ${ALL} ; do echo -e "\n########## Test for service ${i} being active ##########\n" systemctl is-active ${i} >/dev/null 2>&1 -- 2.16.6