- More checks to ensure jetty has started before trying to check if BigBlueButton web is running
This commit is contained in:
parent
0ead92fc94
commit
26e0bbfdac
@ -79,7 +79,7 @@ if [ -f /etc/lsb-release ]; then
|
|||||||
#
|
#
|
||||||
# Support configuration on Intalio Cloud VM
|
# Support configuration on Intalio Cloud VM
|
||||||
#
|
#
|
||||||
PLATFORM=ubuntu-intalio
|
PLATFORM=ubuntu-jetty
|
||||||
SERVLET_CONTAINER=cloud
|
SERVLET_CONTAINER=cloud
|
||||||
SERVLET_LOGS=/var/www/cloud/jetty/logs
|
SERVLET_LOGS=/var/www/cloud/jetty/logs
|
||||||
SERVLET_DIR=/var/www/cloud/webappsviacontext
|
SERVLET_DIR=/var/www/cloud/webappsviacontext
|
||||||
@ -319,6 +319,19 @@ start_bigbluebutton () {
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $PLATFORM == "ubuntu-jetty" ]; then
|
||||||
|
#
|
||||||
|
# Wait until jetty has finished starting before checking for bbb-web
|
||||||
|
#
|
||||||
|
if ! nc -z -w 1 127.0.0.1 8443; then
|
||||||
|
while ! nc -z -w 1 127.0.0.1 8443; do
|
||||||
|
echo -n "."
|
||||||
|
sleep 5
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
BBB_WEB=$(cat ${SERVLET_DIR}/bigbluebutton/WEB-INF/classes/bigbluebutton.properties | sed -n '/^bigbluebutton.web.serverURL/{s/.*\///;p}')
|
BBB_WEB=$(cat ${SERVLET_DIR}/bigbluebutton/WEB-INF/classes/bigbluebutton.properties | sed -n '/^bigbluebutton.web.serverURL/{s/.*\///;p}')
|
||||||
if ! wget http://$BBB_WEB/bigbluebutton/api -O - --quiet | grep -q SUCCESS; then
|
if ! wget http://$BBB_WEB/bigbluebutton/api -O - --quiet | grep -q SUCCESS; then
|
||||||
echo "Startup unsuccessful: could not connect to http://$BBB_WEB/bigbluebutton/api"
|
echo "Startup unsuccessful: could not connect to http://$BBB_WEB/bigbluebutton/api"
|
||||||
|
Loading…
Reference in New Issue
Block a user