#!/usr/bin/env python3 """frank-primary health probe: 200 on /health only once the engine serves. File-based (not an inline HealthCmd) because the podman 5.x v1 quadlet generator splits HealthCmd on spaces into an argv array. """ import sys import urllib.request try: with urllib.request.urlopen("http://127.0.0.1:7770/health", timeout=10) as r: sys.exit(0 if r.status == 200 else 1) except Exception: sys.exit(1)