-
-
Save devopsmariocom/6f55d65e5c5a5e9d995b to your computer and use it in GitHub Desktop.
xvfb init script centos
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 | |
#chkconfig: 345 95 50 | |
#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 &> /var/log/xvfb.log & | |
;; | |
stop) | |
killall Xvfb | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
credits http://superuser.com/questions/319040/proper-way-to-start-xvfb-on-startup-on-centos