jibri: adds autoscaler sidecar hook to signal final shutdown (#1810)

This commit is contained in:
Aaron van Meerten
2024-05-21 16:09:08 -05:00
committed by GitHub
parent f2b2cc445d
commit 726b0f0636
2 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
#!/usr/bin/with-contenv bash
# notify the sidecar of imminent shutdown
PORT=${AUTOSCALER_SIDECAR_PORT:-6000}
curl -d '{}' -v 0:$PORT/hook/v1/shutdown
sleep 10
# signal jibri to shutdown via rest api
/opt/jitsi/jibri/shutdown.sh
# shutdown everything else
s6-svscanctl -t /var/run/s6/services