Trying to modify run.sh so it waits for the Xvfb server to start accepting connections.
This commit is contained in:
parent
036004c0f8
commit
a5a473975a
1 changed files with 1 additions and 1 deletions
2
run.sh
2
run.sh
|
|
@ -18,7 +18,7 @@ LOG "Starting Xvfb on ${DISPLAY}"
|
||||||
LOG "Waiting for display at ${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.
|
# 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
|
if [ $? -eq 0 ]; then
|
||||||
LOG "Display ${DISPLAY} is up."
|
LOG "Display ${DISPLAY} is up."
|
||||||
LOG "Starting tileserver"
|
LOG "Starting tileserver"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue