diff --git a/mqtt_srv.sh b/mqtt_srv.sh index 65a2a1f..fb1fa7f 100644 --- a/mqtt_srv.sh +++ b/mqtt_srv.sh @@ -6,6 +6,7 @@ echo "`date` : Starting service" >> /tmp/mqtt_srv.log if [ "$THIS_HOST" == "nas" ] then /share/Data/__GITLAB/mqtt_srv/venv/bin/python3 /share/Data/__GITLAB/mqtt_srv/mqtt_srv.py > /dev/null 2>&1 & + echo "$?" >> /tmp/mqtt_srv.log else python3 /jffs/scripts/mqtt_srv/mqtt_srv.py > /dev/null 2>&1 & fi