Posted October 12, 2026 at 2:00 pm #2 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.