feat: Update healthcheck script to include warning for inactive casaos-local-storage-first.service to improve service monitoring

This commit is contained in:
Christopher
2024-08-12 13:10:32 -05:00
parent f8559dbdd7
commit add3bb0cd3

View File

@@ -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"