File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export SHUTDOWN_POLLING_INTERVAL={{ $SHUTDOWN_POLLING_INTERVAL }}
5
5
export STATS_POLLING_INTERVAL={{ $STATS_POLLING_INTERVAL }}
6
6
export PORT={{ .Env.AUTOSCALER_SIDECAR_PORT }}
7
7
export GRACEFUL_SHUTDOWN_SCRIPT="/opt/jitsi/jibri/wait_graceful_shutdown.sh"
8
- export TERMINATE_SCRIPT="/opt/jitsi/jibri/ shutdown.sh"
8
+ export TERMINATE_SCRIPT="/opt/jitsi/shutdown.sh"
9
9
export ENABLE_REPORT_STATS=true
10
10
export POLLING_URL="{{ .Env.AUTOSCALER_URL }}/sidecar/poll"
11
11
export STATUS_URL="{{ .Env.AUTOSCALER_URL }}/sidecar/status"
Original file line number Diff line number Diff line change
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
+
7
+ # signal jibri to shutdown via rest api
8
+ /opt/jitsi/jibri/shutdown.sh
9
+
10
+ # shutdown everything else
11
+ s6-svscanctl -t /var/run/s6/services
You can’t perform that action at this time.
0 commit comments