shutdown.sh 294 B

1234567891011
  1. #!/usr/bin/with-contenv bash
  2. # notify the sidecar of imminent shutdown
  3. PORT=${AUTOSCALER_SIDECAR_PORT:-6000}
  4. curl -d '{}' -v 0:$PORT/hook/v1/shutdown
  5. sleep 10
  6. # signal jibri to shutdown via rest api
  7. /opt/jitsi/jibri/shutdown.sh
  8. # shutdown everything else
  9. s6-svscanctl -t /var/run/s6/services