Trying to modify run.sh so it waits for the Xvfb server to start accepting connections.
This commit is contained in:
parent
b702fdaf09
commit
5dab9a3939
1 changed files with 1 additions and 1 deletions
2
run.sh
2
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue