This commit is contained in:
parent
caa641c550
commit
8126b31081
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 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."
|
||||
|
|
Loading…
Reference in a new issue