mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-23 19:11:14 +01:00
2a5ab77637
* Log all services to RAM * Fix tests workdir * Rotate logs when they reach 10MB and keep only 1 archive * Gracefully handle shutdown * Add note about gracetime not working * Fix logs permission, create fake logs for devcontainer * Remove empty line * Update docker/rootfs/etc/services.d/frigate/run * Fix fake Frigate shebang
16 lines
399 B
Plaintext
Executable File
16 lines
399 B
Plaintext
Executable File
#!/command/with-contenv bash
|
|
# shellcheck shell=bash
|
|
# Start the go2rtc service
|
|
|
|
set -o errexit -o nounset -o pipefail
|
|
|
|
if [[ -f "/config/frigate-go2rtc.yaml" ]]; then
|
|
config_path="/config/frigate-go2rtc.yaml"
|
|
else
|
|
config_path="/usr/local/go2rtc/go2rtc.yaml"
|
|
fi
|
|
|
|
# Replace the bash process with the go2rtc process, redirecting stderr to stdout
|
|
exec 2>&1
|
|
exec go2rtc -config="${config_path}"
|