Merge pull request #413 from zstadler/xvfbMaxStartWaitTime
Increase initial timeout - xvfbMaxStartWaitTime
This commit is contained in:
commit
a5a8ae1e95
1 changed files with 2 additions and 2 deletions
4
run.sh
4
run.sh
|
@ -8,7 +8,7 @@ _term() {
|
||||||
trap _term SIGTERM
|
trap _term SIGTERM
|
||||||
trap _term SIGINT
|
trap _term SIGINT
|
||||||
|
|
||||||
xvfbMaxStartWaitTime=5
|
xvfbMaxStartWaitTime=60
|
||||||
displayNumber=99
|
displayNumber=99
|
||||||
screenNumber=0
|
screenNumber=0
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ rm -rf /tmp/.X11-unix /tmp/.X${displayNumber}-lock ~/xvfb.pid
|
||||||
echo "Starting Xvfb on display ${displayNumber}"
|
echo "Starting Xvfb on display ${displayNumber}"
|
||||||
start-stop-daemon --start --pidfile ~/xvfb.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :${displayNumber} -screen ${screenNumber} 1024x768x24 -ac +extension GLX +render -noreset
|
start-stop-daemon --start --pidfile ~/xvfb.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :${displayNumber} -screen ${screenNumber} 1024x768x24 -ac +extension GLX +render -noreset
|
||||||
|
|
||||||
# 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 1 minute.
|
||||||
timeout ${xvfbMaxStartWaitTime} bash -c "while ! xdpyinfo -display :${displayNumber} >/dev/null; do sleep 0.5; done"
|
timeout ${xvfbMaxStartWaitTime} bash -c "while ! xdpyinfo -display :${displayNumber} >/dev/null; do sleep 0.5; done"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Could not connect to display ${displayNumber} in ${xvfbMaxStartWaitTime} seconds time."
|
echo "Could not connect to display ${displayNumber} in ${xvfbMaxStartWaitTime} seconds time."
|
||||||
|
|
Loading…
Reference in a new issue