bigbluebutton-Github/bigbluebutton-web/run.sh
Marcel Waldvogel 9140613a96 Services run as starting PID
The starting scripts now `exec` the main service instead of starting
it as a subprocess. Also in line with docker-entrypoint recommendations.
2021-04-05 12:24:29 +02:00

15 lines
394 B
Bash
Executable File

#!/usr/bin/env bash
IS_BBB_WEB_RUNNING=`netstat -an | grep LISTEN | grep 8090 > /dev/null && echo 1 || echo 0`
if [ "$IS_BBB_WEB_RUNNING" = "1" ]; then
echo "bbb-web is running, exiting"
exit 1
fi
if [ "`whoami`" != "bigbluebutton" ]; then
echo "ERROR: bbb-web must run as bigbluebutton user ( because of the uploaded files permissions )"
exit 1
fi
exec grails prod run-app --port 8090