637 B
637 B
[2026-09-15] Two restart patterns from svos-dev worth stealing: (a) DRY-RUN BOOT against the still-held port
⭐⭐ Two restart patterns from svos-dev worth stealing: (a) DRY-RUN BOOT against the still-held port — start the new process while the old one holds the socket; it proves every check above the bind and dies on [Errno 98], so a one-way restart becomes a rehearsed one at zero cost. (b) ⚠ SIGTERM freed the port but left the process alive for 35 s — a script waiting on the port would have run two copies. Kill by PID, wait on the PID, never on the port. A freed port is not evidence of a dead process.