frigate/docker/rootfs/etc/s6-overlay/s6-rc.d/go2rtc/run
Felipe Santos 6d75415f22 D
2023-01-17 12:59:41 -03:00

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}"