Run clever.service and roscore.service from user pi

This commit is contained in:
Oleg Kalachev
2019-01-31 22:56:10 +03:00
parent 2cbc9481fa
commit a89dda8576
2 changed files with 2 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ Requires=roscore.service
After=roscore.service
[Service]
User=pi
EnvironmentFile=/lib/systemd/system/roscore.env
ExecStart=/opt/ros/kinetic/bin/roslaunch clever clever.launch --wait
Restart=on-abort

View File

@@ -3,6 +3,7 @@ Description=Launcher for the ROS master, parameter server and rosout logging nod
After=network.target
[Service]
User=pi
EnvironmentFile=/lib/systemd/system/roscore.env
ExecStart=/opt/ros/kinetic/bin/roscore
Restart=on-abort