From 88fc83014b31cac64b5c409e9bd3676acc7f883f Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Thu, 22 Jun 2023 15:52:45 +0200 Subject: [PATCH] diagnose: better debug --- ansible/sbin/diagnose | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/sbin/diagnose b/ansible/sbin/diagnose index e73b2d1..8ddfb90 100755 --- a/ansible/sbin/diagnose +++ b/ansible/sbin/diagnose @@ -38,7 +38,7 @@ for machine in $MACHINES; do if ! echo "$STARTED" | grep -q " $machine "; then echo echo "========= $machine" - machinectl -q shell $machine /usr/bin/systemctl is-system-running 2>/dev/null || echo "not started" + machinectl -q shell $machine /usr/bin/systemctl is-system-running 2>/dev/null || systemctl status systemd-nspawn@$machine.service || true fi done echo $DEGRADED