From fd8a73ac379144ca0e3b2e86d2884e17eb7bee48 Mon Sep 17 00:00:00 2001 From: polar Date: Wed, 20 Sep 2017 10:09:00 -0400 Subject: [PATCH] Trying to modify run.sh so it waits for the Xvfb server to start accepting connections. --- run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index cb62466..3b81a2d 100755 --- a/run.sh +++ b/run.sh @@ -12,8 +12,8 @@ while [ ${p} -lt 3000 ] fi done -if ${port}; then - echo The display port will be ${port} +if "${port}" != ""; then + echo "The display port will be ${port}." start-stop-daemon --start --pidfile ~/xvfb.pid --make-pidfile --background \ --exec /usr/bin/Xvfb -- :${port} -screen 0 1024x768x24 \ -ac +extension GLX +render -noreset @@ -25,6 +25,6 @@ if ${port}; then cd /data node /usr/src/app/ -p 80 "$@" else - echo "Could get a display port ${port}." + echo "Could not get a display port." exit 1 fi