Skip to content

Instantly share code, notes, and snippets.

@devopsmariocom
Last active November 5, 2015 11:22
Show Gist options
  • Save devopsmariocom/6f55d65e5c5a5e9d995b to your computer and use it in GitHub Desktop.
Save devopsmariocom/6f55d65e5c5a5e9d995b to your computer and use it in GitHub Desktop.
xvfb init script centos
#!/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
@devopsmariocom
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment