Avoid unhealthy container when Frigate is stopping (#18021)

This commit is contained in:
Felipe Santos
2025-05-07 21:43:51 -03:00
committed by GitHub
parent ac8e647b92
commit 52d94231c7
3 changed files with 8 additions and 1 deletions

View File

@@ -25,4 +25,7 @@ elif [[ "${exit_code_service}" -ne 0 ]]; then
fi
fi
# used by the docker healthcheck
touch /dev/shm/.frigate-is-stopping
exec /run/s6/basedir/bin/halt

View File

@@ -138,5 +138,9 @@ function migrate_db_from_media_to_config() {
fi
}
# remove leftover from last run, not normally needed, but just in case
# used by the docker healthcheck
rm -f /dev/shm/.frigate-is-stopping
migrate_addon_config_dir
migrate_db_from_media_to_config