diff --git a/app/sovran_systemsos_web/server.py b/app/sovran_systemsos_web/server.py index a864466..84a59c0 100644 --- a/app/sovran_systemsos_web/server.py +++ b/app/sovran_systemsos_web/server.py @@ -2681,9 +2681,8 @@ async def api_service_detail(unit: str, icon: str | None = None): elif status == "inactive": # For enabled services that are inactive (e.g. socket-activated PHP-FPM), # still check domain/port health so detail health is consistent. - has_domain_issues_inactive = has_domain_issues - has_port_issues_inactive = any(p["status"] == "closed" for p in port_statuses) if port_statuses else False - if has_domain_issues_inactive or has_port_issues_inactive: + has_port_issues = any(p["status"] == "closed" for p in port_statuses) if port_statuses else False + if has_domain_issues or has_port_issues: health = "needs_attention" else: health = "inactive"