changed service config to service config sample

This commit is contained in:
Mikkeli Matlock
2026-01-24 23:30:01 +09:00
parent 74cafc157d
commit 42e2094635
2 changed files with 6 additions and 6 deletions

View File

@@ -0,0 +1,31 @@
[Unit]
Description=Smart Serow UI
After=multi-user.target
Wants=multi-user.target
[Service]
Type=simple
User=pi
Group=pi
WorkingDirectory=/opt/smartserow/bundle
# GBM backend is compiled in. Just specify bundle path.
ExecStart=/opt/smartserow/bundle/smartserow_ui --bundle=/opt/smartserow/bundle
# Restart on crash
Restart=always
RestartSec=3
# Environment for DRM/KMS access
Environment=XDG_RUNTIME_DIR=/run/user/1000
Environment=HOME=/home/pi
Environment=LD_LIBRARY_PATH=/opt/smartserow/bundle/lib
# Give time for GPU to initialize on boot
ExecStartPre=/bin/sleep 2
# Ensure clean shutdown
TimeoutStopSec=10
[Install]
WantedBy=multi-user.target