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

1
.gitignore vendored
View File

@@ -52,3 +52,4 @@ pi_sysroot/
# personal deploy target info
scripts/deploy_target.json
scripts/smartserow-ui.service

View File

@@ -5,13 +5,12 @@ Wants=multi-user.target
[Service]
Type=simple
User=mikkeli
Group=mikkeli
User=pi
Group=pi
WorkingDirectory=/opt/smartserow/bundle
# GBM backend is compiled in. Just specify bundle path.
# Scale factor 2.5 for 5.5" 1080p screen (high DPI)
ExecStart=/opt/smartserow/bundle/smartserow_ui --bundle=/opt/smartserow/bundle --force-scale-factor=2.5
ExecStart=/opt/smartserow/bundle/smartserow_ui --bundle=/opt/smartserow/bundle
# Restart on crash
Restart=always
@@ -19,7 +18,7 @@ RestartSec=3
# Environment for DRM/KMS access
Environment=XDG_RUNTIME_DIR=/run/user/1000
Environment=HOME=/home/mikkeli
Environment=HOME=/home/pi
Environment=LD_LIBRARY_PATH=/opt/smartserow/bundle/lib
# Give time for GPU to initialize on boot