mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-04 10:15:22 +03:00
Fix more hidden logs
This commit is contained in:
parent
2b24c9da9d
commit
635b9b9f29
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
set -o errexit -o nounset -o pipefail
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
# Logs should be sent to stdout so that s6 can collect them
|
||||||
|
|
||||||
declare exit_code_container
|
declare exit_code_container
|
||||||
exit_code_container=$(cat /run/s6-linux-init-container-results/exitcode)
|
exit_code_container=$(cat /run/s6-linux-init-container-results/exitcode)
|
||||||
readonly exit_code_container
|
readonly exit_code_container
|
||||||
@ -11,7 +13,7 @@ readonly exit_code_service="${1}"
|
|||||||
readonly exit_code_signal="${2}"
|
readonly exit_code_signal="${2}"
|
||||||
readonly service="Frigate"
|
readonly service="Frigate"
|
||||||
|
|
||||||
echo "[INFO] Service ${service} exited with code ${exit_code_service} (by signal ${exit_code_signal})" >&2
|
echo "[INFO] Service ${service} exited with code ${exit_code_service} (by signal ${exit_code_signal})"
|
||||||
|
|
||||||
if [[ "${exit_code_service}" -eq 256 ]]; then
|
if [[ "${exit_code_service}" -eq 256 ]]; then
|
||||||
if [[ "${exit_code_container}" -eq 0 ]]; then
|
if [[ "${exit_code_container}" -eq 0 ]]; then
|
||||||
|
|||||||
@ -3,8 +3,10 @@
|
|||||||
|
|
||||||
set -o errexit -o nounset -o pipefail
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
# Logs should be sent to stdout so that s6 can collect them
|
||||||
|
|
||||||
readonly exit_code_service="${1}"
|
readonly exit_code_service="${1}"
|
||||||
readonly exit_code_signal="${2}"
|
readonly exit_code_signal="${2}"
|
||||||
readonly service="go2rtc-healthcheck"
|
readonly service="go2rtc-healthcheck"
|
||||||
|
|
||||||
echo "[INFO] The ${service} service exited with code ${exit_code_service} (by signal ${exit_code_signal})" >&2
|
echo "[INFO] The ${service} service exited with code ${exit_code_service} (by signal ${exit_code_signal})"
|
||||||
|
|||||||
@ -3,8 +3,10 @@
|
|||||||
|
|
||||||
set -o errexit -o nounset -o pipefail
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
# Logs should be sent to stdout so that s6 can collect them
|
||||||
|
|
||||||
readonly exit_code_service="${1}"
|
readonly exit_code_service="${1}"
|
||||||
readonly exit_code_signal="${2}"
|
readonly exit_code_signal="${2}"
|
||||||
readonly service="go2rtc"
|
readonly service="go2rtc"
|
||||||
|
|
||||||
echo "[INFO] The ${service} service exited with code ${exit_code_service} (by signal ${exit_code_signal})" >&2
|
echo "[INFO] The ${service} service exited with code ${exit_code_service} (by signal ${exit_code_signal})"
|
||||||
|
|||||||
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
set -o errexit -o nounset -o pipefail
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
# Logs should be sent to stdout so that s6 can collect them
|
||||||
|
|
||||||
declare exit_code_container
|
declare exit_code_container
|
||||||
exit_code_container=$(cat /run/s6-linux-init-container-results/exitcode)
|
exit_code_container=$(cat /run/s6-linux-init-container-results/exitcode)
|
||||||
readonly exit_code_container
|
readonly exit_code_container
|
||||||
@ -11,7 +13,7 @@ readonly exit_code_service="${1}"
|
|||||||
readonly exit_code_signal="${2}"
|
readonly exit_code_signal="${2}"
|
||||||
readonly service="NGINX"
|
readonly service="NGINX"
|
||||||
|
|
||||||
echo "[INFO] Service ${service} exited with code ${exit_code_service} (by signal ${exit_code_signal})" >&2
|
echo "[INFO] Service ${service} exited with code ${exit_code_service} (by signal ${exit_code_signal})"
|
||||||
|
|
||||||
if [[ "${exit_code_service}" -eq 256 ]]; then
|
if [[ "${exit_code_service}" -eq 256 ]]; then
|
||||||
if [[ "${exit_code_container}" -eq 0 ]]; then
|
if [[ "${exit_code_container}" -eq 0 ]]; then
|
||||||
|
|||||||
@ -4,7 +4,9 @@
|
|||||||
|
|
||||||
set -o errexit -o nounset -o pipefail
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
echo "[INFO] Starting NGINX..." >&2
|
# Logs should be sent to stdout so that s6 can collect them
|
||||||
|
|
||||||
|
echo "[INFO] Starting NGINX..."
|
||||||
|
|
||||||
# Replace the bash process with the NGINX process, redirecting stderr to stdout
|
# Replace the bash process with the NGINX process, redirecting stderr to stdout
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user