更新 xxxx.service
This commit is contained in:
parent
4791a6052c
commit
26e254930c
@ -3,6 +3,9 @@ Description=My Custom Startup Script
|
||||
|
||||
[Service]
|
||||
User=admin-root
|
||||
# 配置systemd服务允许访问显示, 使得程序能够输出到显示屏, echo $DISPLAY 输出显示设备id
|
||||
Environment="DISPLAY=:1"
|
||||
Environment="XAUTHORITY=/home/unitree/.Xauthority"
|
||||
# 这里确保自己对这个脚本有执行权限。现chmod +x xxxx.sh
|
||||
ExecStart=/home/admin-root/haotian/康达瑞贝斯/康达后台项目/start_sync_robot.sh
|
||||
Restart=on-failure
|
||||
|
||||
Loading…
Reference in New Issue
Block a user