Created
January 6, 2014 17:02
-
-
Save kfatehi/8285915 to your computer and use it in GitHub Desktop.
Xvfb launcher script for insert into docker image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export DISPLAY=:99 | |
/etc/init.d/xvfb start | |
sleep 1 | |
$@ | |
exit_value=$? | |
/etc/init.d/xvfb stop | |
exit $exit_value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment