diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-05-28 10:08:30 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-05-28 10:08:30 +0800 |
| commit | bbe7e5ba80df1dd6489651cf9f321640beddeac7 (patch) | |
| tree | e49f0de5f0b974638b575fbb0e8b0cca2c3b275f /systemd-unit-verification.sh | |
| parent | d3962b826c02b66265bd2617d231f9c22ffc6445 (diff) | |
update
Diffstat (limited to 'systemd-unit-verification.sh')
| -rwxr-xr-x | systemd-unit-verification.sh | 5 |
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 |
