From 5dab9a3939f7eb6a17b8eab0ff57126459287fcf Mon Sep 17 00:00:00 2001 From: polar Date: Wed, 20 Sep 2017 10:44:28 -0400 Subject: [PATCH] Trying to modify run.sh so it waits for the Xvfb server to start accepting connections. --- run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.sh b/run.sh index a12824a..005b4dc 100755 --- a/run.sh +++ b/run.sh @@ -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