Score:0

Xvfb started using reboot always shows in use?

in flag
Sid

I am trying to run:

/usr/bin/Xvfb :10 -ac -screen 0 1024x768x24 &

Using cron:

@reboot /usr/bin/Xvfb :10 -ac -screen 0 1024x768x24 & >> /home/ubuntu/xvfb.log 2>&1

When I reboot and try to see if Xvfb is running, using the following command:

xdpyinfo -display :10 >/dev/null 2>&1 && echo "In use" || echo "Free"

I get: In use

Cannot figure out what is using the display, nothing else is being run by cron. Am I doing something wrong?

Is there a way to initialize the screen from within python?

Thanks

hr flag
I'm confused - if xdpyinfo returns success, that means the display is *ready to use* surely? in fact that seems to be the suggested method to poll it. See for example [How to poll for Xvfb to be ready?](https://unix.stackexchange.com/a/418903/65304)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.