I'm trying to launch Xvfb on a specific display, but I get this error message:
(EE)
Fatal server error:
(EE) Server is already active for display 42
If this server is no longer running, remove /tmp/.X42-lock
and start again.
(EE)
But when I look for /tmp/.X42-lock
, it doesn't exist. How can I do to make the display 42 available again?
(I've tried with other displays, I works the first time, but then the display is not available anymore, which seems logic).
I've found a workaround but I think it's not very clean:
kill $(ps aux | grep 'Xvfb' | awk '{print $2}')
// or...
killall Xvfb
I would like to know if there's a cleaner way to stop Xvfb processes.