Skip to content

Instantly share code, notes, and snippets.

@kayslay
Forked from Nimrod007/Xvfb-restart-script.sh
Created March 13, 2018 04:45
Show Gist options
  • Save kayslay/45ca3230b3293de033da6a2dbec6fc6b to your computer and use it in GitHub Desktop.
Save kayslay/45ca3230b3293de033da6a2dbec6fc6b to your computer and use it in GitHub Desktop.
Xvfb restart script
echo "restart Xvfb"
kill -9 `ps aux | grep Xvfb | grep -v grep | awk '{print $2}'`
sleep 3
nohup Xvfb :10 -ac > /tmp/Xvfb.log 2>&1 &
echo "Xvfb started"
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment