aboutsummaryrefslogtreecommitdiffstats
path: root/common/scripts/service-check-gfx.sh
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-10-10 23:06:21 +0200
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-10-10 23:06:21 +0200
commita2a853be927de72bf582efb8da256159f5aeaf68 (patch)
treec5e164230b1a2af0d42f85ef670a104397478c38 /common/scripts/service-check-gfx.sh
parentb3186538163e873fd58986184586ac5a4463fd17 (diff)
Prepare the nogfx variant of the service check
and enhance verbosity. Change-Id: Ia95a6236ffc4229703714ad58b70b21c00884c5c Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'common/scripts/service-check-gfx.sh')
-rwxr-xr-xcommon/scripts/service-check-gfx.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/common/scripts/service-check-gfx.sh b/common/scripts/service-check-gfx.sh
new file mode 100755
index 0000000..2a5353b
--- /dev/null
+++ b/common/scripts/service-check-gfx.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+REQUIREDSOCKETS="cynara.socket dbus.socket security-manager.socket"
+REQUIREDSERVICES="afm-system-daemon.service afm-user-daemon.service connman.service ofono.service weston.service HomeScreen.service lightmediascanner.service bluetooth.service"
+
+ALL="${REQUIREDSOCKETS} ${REQUIREDSERVICES}"
+RESULT="unknown"
+
+for i in ${ALL} ; do
+ echo -e "\n########## Test for service ${i} being active ##########\n"
+ systemctl is-active ${i} >/dev/null 2>&1
+ if [ $? -eq 0 ] ; then
+ RESULT="pass"
+ else
+ RESULT="fail"
+ fi
+ lava-test-case ${i} --result ${RESULT}
+
+ if [ x"fail" == x"${RESULT}" ] ; then
+ systemctl status ${i} || true
+ fi
+ echo -e "\n########## Result for service ${i} : $RESULT ##########\n"
+done
+
+exit 0 \ No newline at end of file