This commit is contained in:
2025-08-27 04:27:38 +02:00
parent 320adbfafa
commit 58fb5a832e

View File

@@ -11,10 +11,12 @@ then
else else
python3 /jffs/scripts/mqtt_srv/mqtt_srv.py > /dev/null 2>&1 & python3 /jffs/scripts/mqtt_srv/mqtt_srv.py > /dev/null 2>&1 &
fi fi
cp /share/Data/nas_bash_history /root/.bash_history
;; ;;
"stop") "stop")
echo lala1 >> /tmp/mqtt_srv.log echo lala1 >> /tmp/mqtt_srv.log
kill -9 `ps |grep -e "mqtt_srv.py"|grep -v grep|awk '{ print $1}'` kill -9 `ps |grep -e "mqtt_srv.py"|grep -v grep|awk '{ print $1}'`
cp /root/.bash_history /share/Data/nas_bash_history
;; ;;
"restart") "restart")
$0 stop $0 stop