Skip to content
Snippets Groups Projects
Unverified Commit b96d549d authored by Paulo Lanzarin's avatar Paulo Lanzarin Committed by GitHub
Browse files

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.
parent c494e58a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment