mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-23 19:11:14 +01:00
02df2a8bbd
* Refator s6 scripts to the new format * Remove unneeded workaround * Migrate logging to new s6 format * Remove more unnecessary s6 variables * Fix prepare-log and when go2rtc is not present in config * Restart the whole container if either Frigate or go2rtc fails * D * Fix service name in finish * Fix nginx finish comment * Restart improvements * Fix devcontainer * Fix format * Update Dockerfile Co-authored-by: Felipe Santos <felipecassiors@gmail.com> Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
15 lines
364 B
Plaintext
Executable File
15 lines
364 B
Plaintext
Executable File
#!/command/with-contenv bash
|
|
# shellcheck shell=bash
|
|
# Start the go2rtc service
|
|
|
|
set -o errexit -o nounset -o pipefail
|
|
|
|
# Tell S6-Overlay not to restart this service
|
|
s6-svc -O .
|
|
|
|
raw_config=$(python3 /usr/local/go2rtc/create_config.py)
|
|
|
|
# Replace the bash process with the go2rtc process, redirecting stderr to stdout
|
|
exec 2>&1
|
|
exec go2rtc -config="${raw_config}"
|