summaryrefslogtreecommitdiff
path: root/systemd-unit-verification.sh
diff options
context:
space:
mode:
authorlittleblack111 <jerrylam110209@gmail.com>2023-05-28 10:08:30 +0800
committerlittleblack111 <jerrylam110209@gmail.com>2023-05-28 10:08:30 +0800
commitbbe7e5ba80df1dd6489651cf9f321640beddeac7 (patch)
treee49f0de5f0b974638b575fbb0e8b0cca2c3b275f /systemd-unit-verification.sh
parentd3962b826c02b66265bd2617d231f9c22ffc6445 (diff)
update
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