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():