image: log all clover service output to /var/log/clover.log

This commit is contained in:
Oleg Kalachev
2021-07-08 09:25:09 +03:00
parent 6934cc7a1a
commit 7a1f09da98
4 changed files with 6 additions and 2 deletions

View File

@@ -8,5 +8,9 @@ ExecStart=/bin/bash -c ". /home/pi/catkin_ws/devel/setup.sh; \
ROS_HOSTNAME=`hostname`.local exec stdbuf -o L roslaunch clover clover.launch --wait --screen --skip-log-check \
2> >(tee /tmp/clover.err)"
ExecStartPre=+rm /var/log/clover.log
StandardOutput=file:/var/log/clover.log
StandardError=file:/var/log/clover.log
[Install]
WantedBy=multi-user.target