]> code.delx.au - monosys/blobdiff - healthcheck/systemd-units
healthcheck more fixes
[monosys] / healthcheck / systemd-units
index 5eea8740af664cdfc1543d23e9ed6b7201ad13a2..8a6bc634818fda7f735d7c7b0e8873f9524bddde 100755 (executable)
@@ -1,9 +1,9 @@
 #!/bin/bash
 
-if systemctl is-failed -q '*'; then
-    echo -e "# systemctl --failed"
-    systemctl --failed
-    exit 1
-else
+if systemctl is-system-running > /dev/null; then
     exit 0
 fi
+
+echo -e "# systemctl --failed"
+systemctl --failed
+exit 1