jvb: adds autoscaler sidecar hook to signal final shutdown (#1809)

* jvb: adds autoscaler sidecar hook to signal final shutdown

* cleaner ports
pull/1816/head
Aaron van Meerten 6 months ago committed by GitHub
parent 726b0f0636
commit cacee4ecc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      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

Loading…
Cancel
Save