mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-20 18:59:01 +03:00
Add ability to restart
This commit is contained in:
committed by
Blake Blackshear
parent
4a7b8f2501
commit
54e09aea39
+1
-1
@@ -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