forked from jitsi/docker-jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch JVB autoscaler sidecar config to not use s6-overlay
Signed-off-by: Rhea Danzey <[email protected]>
- Loading branch information
Showing
2 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[program:jvb-autoscaler-sidecar] | ||
command=/bin/bash -c "/usr/bin/service_wrapper_autoscaler_sidecar" | ||
autorestart=unexpected | ||
stdout_logfile=/dev/fd/1 | ||
stdout_logfile_maxbytes=0 | ||
redirect_stderr=true |
6 changes: 3 additions & 3 deletions
6
.../etc/services.d/50-autoscaler-sidecar/run → ...sr/bin/service_wrapper_autoscaler_sidecar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/usr/bin/with-contenv bash | ||
#!/bin/bash | ||
|
||
if [[ -n "$AUTOSCALER_URL" ]] && [[ -f "/etc/jitsi/autoscaler-sidecar/config" ]]; then | ||
DAEMON="/usr/bin/node /usr/share/jitsi-autoscaler-sidecar/app.js" | ||
exec s6-setuidgid autoscaler-sidecar /bin/bash -c ". /etc/jitsi/autoscaler-sidecar/config && exec $DAEMON" | ||
/bin/bash -c ". /etc/jitsi/autoscaler-sidecar/config && exec $DAEMON" | ||
else | ||
# if autoscaler-sidecar should not be started, | ||
# prevent s6 from restarting this script again and again | ||
s6-svc -O /var/run/s6/services/50-autoscaler-sidecar | ||
supervisorctl stop jvb-autoscaler-sidecar | ||
fi |