EADDRINUSE at Startup: The Rule That Kills the Port and Restarts Automatically
Every developer has lost five minutes to a port-in-use error at startup. Here is the stream rule that detects EADDRINUSE in your logs, kills the blocking port, and restarts your service — automatically, without a terminal.