Trying to modify run.sh so it waits for the Xvfb server to start accepting connections.

This commit is contained in:
polar 2017-09-20 10:44:28 -04:00
parent b702fdaf09
commit 5dab9a3939

2
run.sh
View file

@ -19,7 +19,7 @@ if [ "${port}" != "" ]; then
-ac +extension GLX +render -noreset
# Wait to be able to connect to the port. This will exit if it cannot in 15 minutes.
timeout 15 bash -c "until echo > /dev/tcp/localhost/${port}; do sleep 0.5; done"
timeout 15 bash -c "while ! nc -z localhost ${port}; do sleep 0.5; done"
export DISPLAY=:${port}.0
cd /data