update
This commit is contained in:
parent
24be9201aa
commit
68072b177b
1
tool.py
1
tool.py
|
@ -26,6 +26,7 @@ def exec_sh(msg, client):
|
|||
if cmd == "supervisorctl stop __mqtt__" or cmd == "supervisorctl restart __mqtt__":
|
||||
return
|
||||
if cmd == "supervisorctl reload":
|
||||
client.publish('success', payload='reloading', qos=0)
|
||||
subprocess.Popen([cmd], shell=True)
|
||||
return
|
||||
p = subprocess.Popen([cmd], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
|
|
Loading…
Reference in New Issue