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