Improve scripts logging

This commit is contained in:
Felipe Santos 2023-01-18 10:33:42 -03:00
parent 33c3a7cebe
commit d85be08511
2 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,9 @@ set -o errexit -o nounset -o pipefail
# Tell S6-Overlay not to restart this service
s6-svc -O .
cd /opt/frigate
echo "[INFO] Starting Frigate..." >&2
cd /opt/frigate || echo "[ERROR] Failed to change working directory to /opt/frigate" >&2
# Replace the bash process with the Frigate process, redirecting stderr to stdout
exec 2>&1

View File

@ -2,6 +2,10 @@
# shellcheck shell=bash
# Start the NGINX service
set -o errexit -o nounset -o pipefail
echo "[INFO] Starting NGINX..." >&2
# Replace the bash process with the NGINX process, redirecting stderr to stdout
exec 2>&1
exec nginx