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 13:13:59 -04:00
parent 036004c0f8
commit a5a473975a

2
run.sh
View file

@ -18,7 +18,7 @@ LOG "Starting Xvfb on ${DISPLAY}"
LOG "Waiting for display at ${DISPLAY}."
# Wait to be able to connect to the port. This will exit if it cannot in 15 minutes.
timeout ${timeout} bash -c "while ! xdpyinfo >/dev/null 2>&1; do sleep 0.5; done"
timeout ${timeout} bash -c "while ! xdpyinfo; do sleep 0.5; done"
if [ $? -eq 0 ]; then
LOG "Display ${DISPLAY} is up."
LOG "Starting tileserver"