changed service config to service config sample
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -52,3 +52,4 @@ pi_sysroot/
|
|||||||
|
|
||||||
# personal deploy target info
|
# personal deploy target info
|
||||||
scripts/deploy_target.json
|
scripts/deploy_target.json
|
||||||
|
scripts/smartserow-ui.service
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user