update
This commit is contained in:
parent
d45accfcad
commit
79dbdd3713
2
tool.py
2
tool.py
|
@ -33,7 +33,7 @@ def exec_sh(msg, client):
|
||||||
client.publish('error', payload='data must be supplied', qos=0)
|
client.publish('error', payload='data must be supplied', qos=0)
|
||||||
return
|
return
|
||||||
cmd = origin_data["data"]
|
cmd = origin_data["data"]
|
||||||
if cmd == "supervisorctl stop __mqtt__" or cmd == "supervisorctl restart __mqtt__":
|
if cmd == "supervisorctl stop __mqtt__" or cmd == "supervisorctl restart __mqtt__" or "supervisorctl stop all":
|
||||||
return
|
return
|
||||||
if cmd == "supervisorctl reload":
|
if cmd == "supervisorctl reload":
|
||||||
client.publish('success', payload='reloading', qos=0)
|
client.publish('success', payload='reloading', qos=0)
|
||||||
|
|
Loading…
Reference in New Issue