From 68072b177b709f05d28d13e6495131f6d1755ed8 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Thu, 7 Dec 2023 09:29:13 +0800 Subject: [PATCH] update --- tool.py | 1 + 1 file changed, 1 insertion(+) 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)