From b3186538163e873fd58986184586ac5a4463fd17 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan-Simon=20M=C3=B6ller?= Date: Fri, 29 Sep 2017 12:19:13 +0200 Subject: [PATCH] Add some more output in case the service is not up to assist debugging MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ia61db614df402ccf9daf37ef685a002b08e3d824 Signed-off-by: Jan-Simon Möller --- common/scripts/service-check.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/scripts/service-check.sh b/common/scripts/service-check.sh index 6ffa6f6..4dc0a25 100755 --- a/common/scripts/service-check.sh +++ b/common/scripts/service-check.sh @@ -7,12 +7,15 @@ ALL="${REQUIREDSOCKETS} ${REQUIREDSERVICES}" RESULT="unknown" for i in ${ALL} ; do + echo "########## Test for service ${i} being active ##########" systemctl is-active ${i} >/dev/null 2>&1 if [ $? -eq 0 ] ; then RESULT="pass" else + systemctl status ${i} || true RESULT="fail" fi + echo "########## Result for service ${i} : $RESULT ##########" lava-test-case ${i} --result ${RESULT} done -- 2.16.6