We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d40297 commit c5afcdeCopy full SHA for c5afcde
jigasi/rootfs/etc/services.d/jigasi/finish
@@ -0,0 +1,9 @@
1
+#!/usr/bin/with-contenv bash
2
+
3
+# When the jigasi is shutdown (or gracefully shutdown), it exits with code 0.
4
+# In this case, we don't want S6 to restart the service. We want to stop all
5
+# services and shutdown the container.
6
7
+if [[ $1 -eq 0 ]]; then
8
+ /opt/jitsi/shutdown.sh
9
+fi
jigasi/rootfs/opt/jitsi/shutdown.sh
@@ -0,0 +1,11 @@
+if [ -n "$AUTOSCALER_URL" ]; then
+ # notify the sidecar of imminent shutdown
+ PORT=${AUTOSCALER_SIDECAR_PORT:-6000}
+ curl -d '{}' -v 0:$PORT/hook/v1/shutdown
+ sleep 10
10
+# shutdown everything
11
+s6-svscanctl -t /var/run/s6/services
0 commit comments