Last active
July 10, 2022 12:13
-
-
Save Nimrod007/53d3151962508ea41e24 to your computer and use it in GitHub Desktop.
Xvfb restart script
This file contains 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
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 |
works great, I just swap kill -9 from pkill -f Xvfb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
small script to restart Xvfb before a jenkins job for example