# Working 09-08-2023 [Unit] Description=Status Server # Allow 2 restarts within any 10 second window # If more it will not autorestart and needs to be reset with systemctl reset-failed StartLimitIntervalSec=10 StartLimitBurst=2 [Service] ExecStart=/usr/bin/python /root/status.py Restart=on-failure RestartSec=1s StandardOutput=tty [Install] WantedBy=multi-user.target