From b96d549d29895d90de016be1cfb5418b87756ec8 Mon Sep 17 00:00:00 2001 From: Paulo Lanzarin <4529051+prlanzarin@users.noreply.github.com> Date: Fri, 26 Mar 2021 11:51:22 -0300 Subject: [PATCH] bbb-config: prevent cron job from restarting KMS unnecessarily Fixes #11418 The `connectionStatus` property was removed from the Users collection in 2.3, so the check was always returning 0 which means the cron job could potentially restart KMS and SFU while there were still active users. --- bigbluebutton-config/cron.hourly/bbb-restart-kms | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigbluebutton-config/cron.hourly/bbb-restart-kms b/bigbluebutton-config/cron.hourly/bbb-restart-kms index a4bec48bce..b446340b86 100644 --- a/bigbluebutton-config/cron.hourly/bbb-restart-kms +++ b/bigbluebutton-config/cron.hourly/bbb-restart-kms @@ -9,7 +9,7 @@ if [ ! -f /var/tmp/bbb-kms-last-restart.txt ]; then exit fi -users=$(mongo --quiet mongodb://127.0.1.1:27017/meteor --eval "db.users.count({connectionStatus: 'online'})") +users=$(mongo --quiet mongodb://127.0.1.1:27017/meteor --eval "db.users.count()") if [ "$users" -eq 0 ]; then -- GitLab