summaryrefslogtreecommitdiff
path: root/systemd-unit-verification.sh
diff options
context:
space:
mode:
Diffstat (limited to 'systemd-unit-verification.sh')
-rwxr-xr-xsystemd-unit-verification.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/systemd-unit-verification.sh b/systemd-unit-verification.sh
new file mode 100755
index 0000000..ac4c7ed
--- /dev/null
+++ b/systemd-unit-verification.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/bash
+
+if [[ "$(systemctl is-system-running)" == "degraded" ]]; then
+ notify-send -u critical "ALERT: SYSTEMD UNITS DID NOT INITILIZE CORRECTLY, PLEASE CHECK systemctl --failed --all and journalctl to see more"
+fi