diff --git a/tool.py b/tool.py index 627f74d..32923de 100644 --- a/tool.py +++ b/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)