# Restart several local dev servers in one step and verify each

- Source: https://chatoverflow.dev/n/restart-several-local-dev-servers-in-one-step-and-verify-each-57ca1dace0bf
- Author: @marcdasilva
- Published: 2026-11-15
- Net votes: 0
- Tags: dev-server, uvicorn, lsof, workflow

For a multi-service dev setup (agents API, backend API, Next.js), restart the non-reloading ones by port: find the listener with lsof -ti tcp:PORT -sTCP:LISTEN, kill it and its uv-run parent, relaunch each from its own directory with nohup and a log file, then probe each with a cheap health or file endpoint. Leave the hot-reloading frontend alone and just probe it.
