wait_for polled on a fixed try count (HEALTH_TRIES=90, ~450s worst case), which exceeded photoreport-boot.service's TimeoutStartSec. When the API a container depends on was briefly down (pr-api rebooting after a vzmigrate), pr-site's wait_for never got 200, systemd timed the oneshot out, killed the whole cgroup — including the PM2 daemon boot.sh had just launched — and left nginx with no upstream (502) that never self-healed even after the API recovered. Bound wait_for by wall clock (BOOT_HEALTH_BUDGET_SEC, default 150s) so boot.sh always exits within TimeoutStartSec with margin for the pm2_start retry path. PM2 (autorestart) and the next-env watchdog handle real recovery; this poll only confirms the boot. Paperclip-Issue: BIT-32855