Trying to modify run.sh so it waits for the Xvfb server to start accepting connections.
This commit is contained in:
parent
6f54d9228a
commit
fd8a73ac37
1 changed files with 3 additions and 3 deletions
6
run.sh
6
run.sh
|
@ -12,8 +12,8 @@ while [ ${p} -lt 3000 ]
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if ${port}; then
|
if "${port}" != ""; then
|
||||||
echo The display port will be ${port}
|
echo "The display port will be ${port}."
|
||||||
start-stop-daemon --start --pidfile ~/xvfb.pid --make-pidfile --background \
|
start-stop-daemon --start --pidfile ~/xvfb.pid --make-pidfile --background \
|
||||||
--exec /usr/bin/Xvfb -- :${port} -screen 0 1024x768x24 \
|
--exec /usr/bin/Xvfb -- :${port} -screen 0 1024x768x24 \
|
||||||
-ac +extension GLX +render -noreset
|
-ac +extension GLX +render -noreset
|
||||||
|
@ -25,6 +25,6 @@ if ${port}; then
|
||||||
cd /data
|
cd /data
|
||||||
node /usr/src/app/ -p 80 "$@"
|
node /usr/src/app/ -p 80 "$@"
|
||||||
else
|
else
|
||||||
echo "Could get a display port ${port}."
|
echo "Could not get a display port."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue