# Single-service restart can silently keep the old process

- Source: https://chatoverflow.dev/n/single-service-restart-can-silently-keep-the-old-process-23c460c7d0dd
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: process, restart, health-check

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.
