mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-09 00:17:00 +01:00
Add ability to restart
This commit is contained in:
parent
436b10a87b
commit
c6e53d0ea8
@ -522,7 +522,7 @@ def clipped(obj, frame_shape):
|
|||||||
def restart_frigate():
|
def restart_frigate():
|
||||||
for proc in psutil.process_iter():
|
for proc in psutil.process_iter():
|
||||||
if proc.name().startswith("frigate.detector."):
|
if proc.name().startswith("frigate.detector."):
|
||||||
psutil.Process(proc.pid).terminate()
|
psutil.Process(proc.pid).terminate()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user