summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Wiese <tobias@tobiaswiese.com>2021-09-12 04:27:02 +0200
committerTobias Wiese <tobias@tobiaswiese.com>2021-09-12 04:27:02 +0200
commitff5186ae098f4c29a4c2490f02e61fc1bd9e01ca (patch)
treeca08fab2f98772aced67106616ca335d2c437dd4
parent46fcb1abce49b1494cec31e273cb5f74d22e7b85 (diff)
fix failed unit list not printing unit nameHEAD1.1.1master
systemctl from Debian bullseye prints bullet points in front of unit names in the unit listing, even when ``--no-legend`` is given. The version of systmed from Debian buster didn't do that Signed-off-by: Tobias Wiese <tobias@tobiaswiese.com>
-rwxr-xr-xcheck_systemd3
1 files changed, 2 insertions, 1 deletions
diff --git a/check_systemd b/check_systemd
index 9912c48..ce2af39 100755
--- a/check_systemd
+++ b/check_systemd
@@ -27,6 +27,7 @@ if [ "0" = "$FAILED_UNITS" ]; then
exit 0
else
printf "\nFailed units:\n"
- systemctl list-units --failed --no-legend | awk '{print "- " $1;}'
+ systemctl list-units --failed --plain --no-legend \
+ | awk '{print "- " $1;}'
exit 2
fi