Skip to content

Instantly share code, notes, and snippets.

@Nimrod007
Nimrod007 / Xvfb-restart-script.sh
Last active July 10, 2022 12:13
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