mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-26 00:06:32 +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():
|
||||
for proc in psutil.process_iter():
|
||||
if proc.name().startswith("frigate.detector."):
|
||||
psutil.Process(proc.pid).terminate()
|
||||
psutil.Process(proc.pid).terminate()
|
||||
return
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user