Skip to content

Instantly share code, notes, and snippets.

@pankaj28843
Created February 11, 2015 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pankaj28843/f22d191941bb8a3363e2 to your computer and use it in GitHub Desktop.
Save pankaj28843/f22d191941bb8a3363e2 to your computer and use it in GitHub Desktop.
Run xvfb on display 99 as a service
#!/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