Traducido del English por IA ·
La solución más fácil: no reinicies el script. Ejecútalo como servicio de systemd con Restart=always, abre el puerto una vez y nunca lo cierres.
Easiest fix: don’t restart the script. Run it as a systemd service with Restart=always, open the port once and never close it.
If it isn't logged, it didn't happen.

