From a4c6e984a19404eb4e13cf52b1c034fa538e5fdf Mon Sep 17 00:00:00 2001 From: Shashank D <43332436+shashank68@users.noreply.github.com> Date: Thu, 13 May 2021 03:36:46 +0530 Subject: [PATCH] Show the status of nodejs workers in bbb-conf bbb-conf --status will show status of frontend and backend nodejs workers --- bigbluebutton-config/bin/bbb-conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bigbluebutton-config/bin/bbb-conf b/bigbluebutton-config/bin/bbb-conf index 99693f0fbd..184c572643 100755 --- a/bigbluebutton-config/bin/bbb-conf +++ b/bigbluebutton-config/bin/bbb-conf @@ -420,6 +420,20 @@ 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 + + if [ -f /etc/bigbluebutton/bbb-html5-with-roles.conf ]; then + source /etc/bigbluebutton/bbb-html5-with-roles.conf + fi + + for ((i = 1 ; i <= $NUMBER_OF_BACKEND_NODEJS_PROCESSES; i++)); do + units="$units bbb-html5-backend@$i" + done + + for ((i = 1; i <= NUMBER_OF_FRONTEND_NODEJS_PROCESSES; i++)); do + units="$units bbb-html5-frontend@$i" + done fi if [ -f /usr/share/etherpad-lite/settings.json ]; then -- GitLab