dune-weaver-touch.service 827 B

1234567891011121314151617181920212223242526272829
  1. [Unit]
  2. Description=Dune Weaver Touch Interface
  3. After=multi-user.target network-online.target
  4. Wants=network-online.target
  5. # Wait for DRM/KMS devices to be ready
  6. After=systemd-udev-settle.service
  7. Wants=systemd-udev-settle.service
  8. [Service]
  9. Type=simple
  10. User=pi
  11. Group=pi
  12. WorkingDirectory=/home/pi/dune-weaver-touch
  13. Environment=DISPLAY=:0
  14. Environment=QT_QPA_PLATFORM=eglfs
  15. Environment=QT_QPA_EGLFS_ALWAYS_SET_MODE=1
  16. Environment=QT_QPA_EGLFS_HIDECURSOR=1
  17. Environment=QT_QPA_FB_HIDECURSOR=1
  18. Environment=QT_QPA_EGLFS_INTEGRATION=eglfs_kms
  19. Environment=QT_QPA_EGLFS_KMS_ATOMIC=1
  20. ExecStart=/home/pi/dune-weaver-touch/venv/bin/python /home/pi/dune-weaver-touch/main.py
  21. Restart=always
  22. RestartSec=10
  23. # Restart on failure with backoff
  24. StartLimitInterval=200
  25. StartLimitBurst=5
  26. [Install]
  27. WantedBy=multi-user.target