[Unit] Description=ButtonTask display/GUI watchdog (panel re-init, crash escalation) After=buttontask.service StartLimitIntervalSec=0 [Service] # Runs as root: needs fb0/blank, systemctl stop/start and reboot. # See the header of bt-displaywatch for what it watches. Type=notify NotifyAccess=main WatchdogSec=60 Environment=BUTTONTASK_ROOT=/opt/buttontask Environment=PYTHONUNBUFFERED=1 ExecStart=/usr/bin/python3 /opt/buttontask/scripts/bt-displaywatch run Restart=always RestartSec=5 [Install] WantedBy=multi-user.target