Skip to content

Instantly share code, notes, and snippets.

@robinhoode
Created May 27, 2011 20:20
Show Gist options
  • Save robinhoode/996084 to your computer and use it in GitHub Desktop.
Save robinhoode/996084 to your computer and use it in GitHub Desktop.
/etc/init.d/xvfb
#!/bin/bash
# TODO: http://wiki.debian.org/LSBInitScripts
if [ -z "$1" ]; then
echo "`basename $0` {start|stop}"
exit
fi
case "$1" in
start)
/usr/bin/Xvfb :99 -screen 0 1024x768x16 &
;;
stop)
killall Xvfb
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment