mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Add --all to systemctl to also hopefully catch disabled services
This commit is contained in:
parent
f09c0a9f8e
commit
24644664a1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue