set -ex sh -e /etc/init.d/xvfb start sleep 3 # give xvfb some time to start