clever.service: pipe all errors to /tmp/clever.err (#176)

* clever.service: pipe all errors to /tmp/clever.err

* clever.service: run with Bash

* selfcheck: parse node errors and group them
This commit is contained in:
Oleg Kalachev
2019-09-05 20:45:00 +03:00
committed by GitHub
parent 91e1d3c8f3
commit fda030e539
3 changed files with 24 additions and 27 deletions

View File

@@ -5,8 +5,9 @@ After=network.target
[Service]
User=pi
ExecStart=/bin/sh -c ". /home/pi/catkin_ws/devel/setup.sh; \
ROS_HOSTNAME=`hostname`.local exec roslaunch clever clever.launch --wait --screen --skip-log-check"
ExecStart=/bin/bash -c ". /home/pi/catkin_ws/devel/setup.sh; \
ROS_HOSTNAME=`hostname`.local exec roslaunch clever clever.launch --wait --screen --skip-log-check \
2> >(tee /tmp/clever.err)"
[Install]
WantedBy=multi-user.target

View File

@@ -107,7 +107,6 @@ espeak espeak-data python-espeak \
ntpdate \
python-dev \
python3-dev \
python-systemd \
mjpg-streamer=2.0 \
&& echo_stamp "Everything was installed!" "SUCCESS" \
|| (echo_stamp "Some packages wasn't installed!" "ERROR"; exit 1)