Update healthcheck message

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
Felipe Santos 2023-02-19 13:58:02 -03:00 committed by GitHub
parent 47a1e9fc90
commit 6f7fad97e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ echo "[INFO] Starting go2rtc healthcheck service..." >&2
while sleep 1m; do while sleep 1m; do
# Check if the service is running # Check if the service is running
if ! timeout 10s curl -fsSL http://127.0.0.1:1984/api/streams >/dev/null; then if ! timeout 10s curl -fsSL http://127.0.0.1:1984/api/streams >/dev/null; then
echo "[ERROR] The go2rtc is not responding to ping, restarting it..." >&2 echo "[ERROR] The go2rtc service is not responding to ping, restarting..." >&2
# We can also use -r instead of -t to send kill signal rather than term # We can also use -r instead of -t to send kill signal rather than term
s6-svc -t /var/run/service/go2rtc s6-svc -t /var/run/service/go2rtc
fi fi