From bbe7e5ba80df1dd6489651cf9f321640beddeac7 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 28 May 2023 10:08:30 +0800 Subject: update --- systemd-unit-verification.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 systemd-unit-verification.sh (limited to 'systemd-unit-verification.sh') 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 -- cgit v1.2.3