mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-20 13:54:36 +01:00
Avoid unhealthy container when Frigate is stopping (#18021)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user