From 24644664a1013d6c1137efb7387957d16e6932a4 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 22 Mar 2021 22:44:17 +0100 Subject: [PATCH] Add --all to systemctl to also hopefully catch disabled services --- lib/tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tests.sh b/lib/tests.sh index a0a9c23..e7494e0 100644 --- a/lib/tests.sh +++ b/lib/tests.sh @@ -256,8 +256,8 @@ Page extract:\n$page_extract" > $TEST_CONTEXT/curl_result # If we had a 50x error, try to display service info and logs to help debugging if [[ $curl_error -ne 0 ]] && echo "5" | grep -q "${http_code:0:1}" then - LXC_EXEC "systemctl" | grep "$app_id_to_check.*service" - for SERVICE in $(LXC_EXEC "systemctl" | grep "$app_id_to_check.*service" | awk '{print $1}') + LXC_EXEC "systemctl --all" | grep "$app_id_to_check.*service" + for SERVICE in $(LXC_EXEC "systemctl -all" | grep "$app_id_to_check.*service" | awk '{print $1}') do LXC_EXEC "journalctl --no-pager --no-hostname -n 30 -u $SERVICE"; done