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

This commit is contained in:
polar 2017-09-27 12:18:41 -04:00
parent 4bdad36337
commit 1a07ced12c

2
run.sh
View file

@ -15,7 +15,7 @@ LOG "Starting Xvfb on ${DISPLAY}"
--exec /usr/bin/Xvfb -- :${displayNumber} -screen ${screenNumber} 1024x768x24 \
-ac +extension GLX +render -noreset
LOG "Waiting for display at ${DISPLAY} for ${timeout} seconds time."
LOG "Waiting to be able to connect to display at ${DISPLAY} for ${timeout} seconds time."
# Wait to be able to connect to the port. This will exit if it cannot in 15 minutes.
timeout ${timeout} bash -c "while ! xdpyinfo; do sleep 0.5; done"