From 94ca0716d7d8117643419032b1472409c35cdf1b Mon Sep 17 00:00:00 2001 From: shashank68 <shashankindiamanoj@gmail.com> Date: Thu, 13 May 2021 06:08:43 +0000 Subject: [PATCH] Show status of parallel kurento media servers in bbb-conf --- bigbluebutton-config/bin/bbb-conf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bigbluebutton-config/bin/bbb-conf b/bigbluebutton-config/bin/bbb-conf index 184c572643..4c6723ceb3 100755 --- a/bigbluebutton-config/bin/bbb-conf +++ b/bigbluebutton-config/bin/bbb-conf @@ -421,7 +421,13 @@ display_bigbluebutton_status () { if [ -f /usr/lib/systemd/system/bbb-html5.service ]; then units="$units mongod bbb-html5 bbb-webrtc-sfu kurento-media-server" - source /usr/share/meteor/bundle/bbb-html5-with-roles.conf + for i in `seq 8888 8890`; do + if systemctl is-enabled kurento-media-server-${i}.service > /dev/null; then + units="$units kurento-media-server-${i}" + fi + done + + source /usr/share/meteor/bundle/bbb-html5-with-roles.conf if [ -f /etc/bigbluebutton/bbb-html5-with-roles.conf ]; then source /etc/bigbluebutton/bbb-html5-with-roles.conf @@ -431,7 +437,7 @@ display_bigbluebutton_status () { units="$units bbb-html5-backend@$i" done - for ((i = 1; i <= NUMBER_OF_FRONTEND_NODEJS_PROCESSES; i++)); do + for ((i = 1; i <= $NUMBER_OF_FRONTEND_NODEJS_PROCESSES; i++)); do units="$units bbb-html5-frontend@$i" done fi -- GitLab