shutdown.sh 219 B

12345678
  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. # shutdown everything
  7. s6-svscanctl -t /var/run/s6/services