Files
frigate/docker/rootfs/etc/services.d/go2rtc/run
T

16 lines
399 B
Plaintext
Raw Normal View History

#!/command/with-contenv bash
# shellcheck shell=bash
2022-12-07 10:47:40 -03:00
# Start the go2rtc service
2022-12-07 10:47:40 -03:00
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
2022-12-07 10:47:40 -03:00
# Replace the bash process with the go2rtc process, redirecting stderr to stdout
exec 2>&1
exec go2rtc -config="${config_path}"