[Unit] Description=ButtonTask display/GUI watchdog (panel re-init, crash escalation) # Before the UI: on a fresh boot it re-inits the panel while nobody holds the # display, then reports READY and buttontask starts (see boot_takeover). Before=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 # Never hold the UI back for long if something hangs before READY. TimeoutStartSec=30 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