From cacee4ecc817361905f04930f24ff2273502972a Mon Sep 17 00:00:00 2001 From: Aaron van Meerten Date: Tue, 21 May 2024 16:09:20 -0500 Subject: [PATCH] jvb: adds autoscaler sidecar hook to signal final shutdown (#1809) * jvb: adds autoscaler sidecar hook to signal final shutdown * cleaner ports --- jvb/rootfs/opt/jitsi/shutdown.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jvb/rootfs/opt/jitsi/shutdown.sh b/jvb/rootfs/opt/jitsi/shutdown.sh index d780890..0464acb 100755 --- a/jvb/rootfs/opt/jitsi/shutdown.sh +++ b/jvb/rootfs/opt/jitsi/shutdown.sh @@ -1,4 +1,8 @@ #!/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 # shutdown everything s6-svscanctl -t /var/run/s6/services