Files
smart-serow/scripts/smartserow-ui.service.sample

32 lines
654 B
Plaintext
Raw Normal View History

2026-01-24 12:24:26 +09:00
[Unit]
Description=Smart Serow UI
After=multi-user.target
Wants=multi-user.target
[Service]
Type=simple
User=pi
Group=pi
2026-01-24 12:24:26 +09:00
WorkingDirectory=/opt/smartserow/bundle
# GBM backend is compiled in. Just specify bundle path.
ExecStart=/opt/smartserow/bundle/smartserow_ui --bundle=/opt/smartserow/bundle
2026-01-24 12:24:26 +09:00
# 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
2026-01-24 12:24:26 +09:00
# Give time for GPU to initialize on boot
ExecStartPre=/bin/sleep 2
# Ensure clean shutdown
TimeoutStopSec=10
[Install]
WantedBy=multi-user.target