mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-05-12 02:41:56 -04:00
feat: Update healthcheck script to include warning for inactive casaos-local-storage-first.service to improve service monitoring
This commit is contained in:
@@ -26,6 +26,12 @@ print_header() {
|
||||
check_service_status() {
|
||||
local service=$1
|
||||
local status=$(systemctl is-active "$service")
|
||||
|
||||
if [[ "$service" == "casaos-local-storage-first.service" && "$status" == "inactive" ]]; then
|
||||
print_color "0;33" "${WARNING_MARK} $service is normally stopped"
|
||||
return
|
||||
fi
|
||||
|
||||
case $status in
|
||||
"active")
|
||||
print_color "0;32" "${CHECK_MARK} $service is running"
|
||||
|
||||
Reference in New Issue
Block a user