You can set up server.py to run as a systemd service. This will ensure that the server restarts automatically in case of an accidental close or machine restart. Steps to Set Up server.py as a systemd ...