LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Xvfb not loading at startup (https://www.linuxquestions.org/questions/linux-software-2/xvfb-not-loading-at-startup-340816/)

novaprime 07-07-2005 12:26 AM

Xvfb not loading at startup
 
Hi All,

This is a 2 in 1 question.

First up, I need Xvfb running when the system boots, i've put it in init.d and in rc2.d as I would any other service, and the script loads but for some reason the damn thing either terminates, gets terminated by init or just doesnt load (i've put comments in the script to ensure the line does get executed)

any ideas, below is part of my script, the same script loads MySQL and that works fine:

case "$1" in
start)
echo -n "Starting: $APP.."
Xvfb :1 -screen 0 1x1x24 &
echo " done"
;;

if I run rc2.d AFTER boot, it will load Xvfb and it remains.. ?? what is going on?

Also, part 2 of my question -
say I want the script to check if Xvfb is running using the "status" parameter or whatever, I would use ps auwx | grep Xvfb - is there a way to get the script to recognise the output and say "Running" or "not running" or whatever.

Cheers!

novaprime 07-07-2005 08:12 PM

:eek: whaaa!? You Linux gurus have no idea?

oh well, guess i'll have to use Windows instead.....

titanium_geek 07-07-2005 09:54 PM

dude- let some time run by. If in a week no one resonably responds, THEN you can go back to windows. :)

ok, howabout a cron script (google that) that run it after boot?
my guess is that it is trying to use something not yet started during the boot process.

titanium_geek

novaprime 07-07-2005 10:02 PM

..it's a web server, im not really going to go back to windows :D
Ahh, I was thinking of sticking it in cron but that isn't really a solution (its a cheap work-around). I thought maybe it was dependant on something else, but I put it right at the back of the rc run-list. Is there anything else that gets executed after init loads the rc?

titanium_geek 07-08-2005 10:05 AM

http://www.google.com/search?hl=en&l...ds&btnG=Search
http://www.google.com/search?hl=en&l...rc&btnG=Search

hope this helps.

titanium_geek


All times are GMT -5. The time now is 07:51 AM.