aboutsummaryrefslogtreecommitdiffstats
path: root/common/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'common/scripts')
-rwxr-xr-xcommon/scripts/service-check-gfx.sh3
-rwxr-xr-xcommon/scripts/service-check-nogfx.sh3
2 files changed, 6 insertions, 0 deletions
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