NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix healthcheck on stopping (#18476)
Felipe Santos81f5f362a91f
diff --git a/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/finish b/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/finishindex 27a02843cb..75869b5e76 100755--- a/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/finish+++ b/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/finish@@ -25,7 +25,4 @@ elif [[ "${exit_code_service}" -ne 0 ]]; thenfifi-# used by the docker healthcheck-touch /dev/shm/.frigate-is-stopping-exec /run/s6/basedir/bin/haltdiff --git a/frigate/app.py b/frigate/app.pyindex cb3da1f549..decee95041 100644--- a/frigate/app.py+++ b/frigate/app.py@@ -6,6 +6,7 @@ import secretsimport shutilfrom multiprocessing import Queuefrom multiprocessing.synchronize import Event as MpEvent+from pathlib import Pathfrom typing import Optionalimport psutil@@ -685,6 +686,9 @@ class FrigateApp:def stop(self) -> None:logger.info("Stopping...")+ # used by the docker healthcheck+ Path("/dev/shm/.frigate-is-stopping").touch()+self.stop_event.set()# set an end_time on entries without an end_time before exiting