From 3ab0ddc2db51e49ad0f47cc70cf3a416cda14d1a Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Thu, 14 Dec 2023 09:54:38 +0800 Subject: [PATCH] update --- MQTT.py | 2 +- tool.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MQTT.py b/MQTT.py index 91720d3..0bc233e 100644 --- a/MQTT.py +++ b/MQTT.py @@ -56,7 +56,7 @@ class MQTTClient: # git更新项目和配置文件 update(client) elif data == "reload": - # git更新项目和配置文件 + # 重启配置 reload(client) elif data == "record_list": # 查看录像列表 diff --git a/tool.py b/tool.py index 9c7851d..a7f0b00 100755 --- a/tool.py +++ b/tool.py @@ -68,8 +68,8 @@ def update(client): def reload(client): - subprocess.Popen(['supervisorctl reload'], shell=True) client.publish('success', payload="reloading", qos=0) + subprocess.Popen(['supervisorctl reload'], shell=True) def get_list_record():