2020-08-15 03:26:33 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# print all logs to stdout
|
|
|
|
python3 -u /log-collector.py &
|
|
|
|
|
|
|
|
cd /usr/local/bigbluebutton/core/scripts
|
2020-08-27 10:47:33 +02:00
|
|
|
PATH_CHECK="/var/bigbluebutton/recording/status"
|
2020-08-15 03:26:33 +02:00
|
|
|
while true; do
|
|
|
|
echo "execute workers..."
|
2020-08-29 16:05:39 +02:00
|
|
|
if [[ $(compgen -G "$PATH_CHECK/recorded/*.done") ]];then
|
2020-08-15 03:26:33 +02:00
|
|
|
bundle exec ruby rap-archive-worker.rb
|
2020-08-27 10:47:33 +02:00
|
|
|
fi
|
2020-08-29 16:05:39 +02:00
|
|
|
if [[ $(compgen -G "$PATH_CHECK/archived/*.done") ]];then
|
2020-08-15 03:26:33 +02:00
|
|
|
bundle exec ruby rap-sanity-worker.rb
|
2020-08-27 10:47:33 +02:00
|
|
|
fi
|
2020-08-29 16:05:39 +02:00
|
|
|
if [[ $(compgen -G "$PATH_CHECK/sanity/*.done") ]];then
|
2020-08-15 03:26:33 +02:00
|
|
|
bundle exec ruby rap-process-worker.rb
|
2020-08-27 10:47:33 +02:00
|
|
|
fi
|
2020-08-29 16:05:39 +02:00
|
|
|
if [[ $(compgen -G "$PATH_CHECK/processed/*.done") ]];then
|
2020-08-15 03:26:33 +02:00
|
|
|
bundle exec ruby rap-publish-worker.rb
|
2020-08-27 10:47:33 +02:00
|
|
|
fi
|
|
|
|
#bundle exec ruby rap-caption-inbox.rb
|
2020-08-29 16:05:39 +02:00
|
|
|
if [[ $(compgen -G "$PATH_CHECK/ended/*.done") ]];then
|
2020-08-15 03:26:33 +02:00
|
|
|
bundle exec ruby rap-events-worker.rb
|
2020-08-27 10:47:33 +02:00
|
|
|
fi
|
|
|
|
sleep 30s
|
|
|
|
done
|