mirror of
https://gitlab.sectorq.eu/jaydee/mqtt_srv.git
synced 2025-12-14 18:44:53 +01:00
upt playbook
This commit is contained in:
@@ -6,13 +6,13 @@ echo lala2 >> /tmp/mqtt_srv.log
|
||||
;;
|
||||
"stop")
|
||||
echo lala1 >> /tmp/mqtt_srv.log
|
||||
kill -9 `ps -ef|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}'`
|
||||
;;
|
||||
"restart")
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
"status")
|
||||
ps -ef|grep -e "mqtt_srv.py"|grep -v grep
|
||||
ps |grep -e "mqtt_srv.py"|grep -v grep
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user