From 41046c28371f9e4b2b4f20de4591a7bc9f53bbd4 Mon Sep 17 00:00:00 2001 From: polar Date: Tue, 19 Sep 2017 16:06:31 -0400 Subject: [PATCH] Trying to modify run.sh so it waits for the Xvfb server to start accepting connections. --- package.json | 2 +- run.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2c9494a..cb3a359 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ ], "repository": { "type": "git", - "url": "https://github.com/klokantech/tileserver-gl.git" + "url": "https://github.com/polar/tileserver-gl.git" }, "license": "BSD-2-Clause", "engines": { diff --git a/run.sh b/run.sh index 4ee9aa2..a12a256 100755 --- a/run.sh +++ b/run.sh @@ -1,6 +1,7 @@ #!/bin/bash start-stop-daemon --start --pidfile ~/xvfb.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1024x768x24 -ac +extension GLX +render -noreset -sleep 1 + +timeout 15 bash -c 'until echo > /dev/tcp/localhost/99; do sleep 0.5; done' export DISPLAY=:99.0