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