From 2e3c272bdf8532a745027baf4cd5a1903cb17c19 Mon Sep 17 00:00:00 2001 From: Aaron van Meerten Date: Tue, 19 Dec 2023 13:16:09 -0600 Subject: [PATCH] jvb: fix terminate script for autoscaler sidecar * jvb: fix terminate script for autoscaler sidecar --- jvb/rootfs/defaults/autoscaler-sidecar.config | 2 +- jvb/rootfs/opt/jitsi/shutdown.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 jvb/rootfs/opt/jitsi/shutdown.sh diff --git a/jvb/rootfs/defaults/autoscaler-sidecar.config b/jvb/rootfs/defaults/autoscaler-sidecar.config index 777942a..69b8372 100644 --- a/jvb/rootfs/defaults/autoscaler-sidecar.config +++ b/jvb/rootfs/defaults/autoscaler-sidecar.config @@ -5,7 +5,7 @@ export SHUTDOWN_POLLING_INTERVAL={{ $SHUTDOWN_POLLING_INTERVAL }} export STATS_POLLING_INTERVAL={{ $STATS_POLLING_INTERVAL }} export PORT={{ .Env.AUTOSCALER_SIDECAR_PORT }} export GRACEFUL_SHUTDOWN_SCRIPT="/usr/share/jitsi-videobridge/graceful_shutdown.sh" -export TERMINATE_SCRIPT="/opt/jitsi/jvb/shutdown.sh" +export TERMINATE_SCRIPT="/opt/jitsi/shutdown.sh" export ENABLE_REPORT_STATS=true export POLLING_URL="{{ .Env.AUTOSCALER_URL }}/sidecar/poll" export STATUS_URL="{{ .Env.AUTOSCALER_URL }}/sidecar/status" diff --git a/jvb/rootfs/opt/jitsi/shutdown.sh b/jvb/rootfs/opt/jitsi/shutdown.sh new file mode 100755 index 0000000..7a42791 --- /dev/null +++ b/jvb/rootfs/opt/jitsi/shutdown.sh @@ -0,0 +1,3 @@ +# shutdown everything + +s6-svscanctl -t /var/run/s6/services