Created
February 11, 2015 07:44
-
-
Save pankaj28843/f22d191941bb8a3363e2 to your computer and use it in GitHub Desktop.
Run xvfb on display 99 as a service
This file contains hidden or 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 | |
# Description: Starts xvfb on display 99 | |
if [ -z "$1" ]; then | |
echo "`basename $0` {start|stop}" | |
exit | |
fi | |
case "$1" in | |
start) | |
/usr/bin/Xvfb :99 -screen 0 1280x1024x24 & | |
;; | |
stop) | |
killall Xvfb | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment