[Unit] Description=Display details on the OLED screen After=network-online.target [Service] Type=simple User=pi Group=pi UMask=007 ExecStart=/usr/bin/python /home/pi/pi-router-oled/screen.py RestartSec=2s Restart=always # Configures the time to wait before service is stopped forcefully. TimeoutStopSec=300 [Install] WantedBy=multi-user.target