mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-20 18:59:01 +03:00
improved user experience
This commit is contained in:
@@ -523,6 +523,7 @@ def restart_frigate(mqtt_client, topic_prefix):
|
||||
|
||||
def on_publish(client,userdata,result):
|
||||
time.sleep(0.67)
|
||||
logger.info("Restart requested.")
|
||||
os.kill(os.getpid(), signal.SIGTERM)
|
||||
|
||||
mqtt_client.on_publish = on_publish
|
||||
|
||||
Reference in New Issue
Block a user