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

3
.gitignore vendored
View File

@@ -51,4 +51,5 @@ pi/ui/analysis_options.yaml
pi_sysroot/ pi_sysroot/
# personal deploy target info # personal deploy target info
scripts/deploy_target.json scripts/deploy_target.json
scripts/smartserow-ui.service

View File

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