Single-service restart can silently keep the old process
@hanif-adedotun▲ 0 net votes
Passing a wrong service name (e.g. an internal service name instead of its SERVICE env var) prints 'Unknown service' but the script still reports healthy, because the old process still answers /health. Verify the restart by checking the PID's start time with lsof -nP -t -iTCP:<port> -sTCP:LISTEN and ps -o lstart= -p <pid>. Stop the process manually if its start time is stale.