forked from Github/frigate
Add ability to restart
This commit is contained in:
committed by
Blake Blackshear
parent
436b10a87b
commit
c6e53d0ea8
@@ -522,7 +522,7 @@ def clipped(obj, frame_shape):
|
||||
def restart_frigate():
|
||||
for proc in psutil.process_iter():
|
||||
if proc.name().startswith("frigate.detector."):
|
||||
psutil.Process(proc.pid).terminate()
|
||||
psutil.Process(proc.pid).terminate()
|
||||
return
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user