From 8126b31081bce168e9714e9b7d67ad09b399aaf1 Mon Sep 17 00:00:00 2001 From: zstadler Date: Tue, 28 Jan 2020 11:29:42 +0200 Subject: [PATCH] Resolve https://github.com/maptiler/tileserver-gl/issues/386 --- run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index 829163d..26cdab8 100755 --- a/run.sh +++ b/run.sh @@ -8,7 +8,7 @@ _term() { trap _term SIGTERM trap _term SIGINT -xvfbMaxStartWaitTime=5 +xvfbMaxStartWaitTime=60 displayNumber=99 screenNumber=0 @@ -18,7 +18,7 @@ rm -rf /tmp/.X11-unix /tmp/.X${displayNumber}-lock ~/xvfb.pid 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 -# 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" if [ $? -ne 0 ]; then echo "Could not connect to display ${displayNumber} in ${xvfbMaxStartWaitTime} seconds time."