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