LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-07-2005, 12:26 AM   #1
novaprime
Member
 
Registered: Jan 2005
Posts: 39

Rep: Reputation: 15
Angry 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!
 
Old 07-07-2005, 08:12 PM   #2
novaprime
Member
 
Registered: Jan 2005
Posts: 39

Original Poster
Rep: Reputation: 15
whaaa!? You Linux gurus have no idea?

oh well, guess i'll have to use Windows instead.....
 
Old 07-07-2005, 09:54 PM   #3
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
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
 
Old 07-07-2005, 10:02 PM   #4
novaprime
Member
 
Registered: Jan 2005
Posts: 39

Original Poster
Rep: Reputation: 15
..it's a web server, im not really going to go back to windows
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?
 
Old 07-08-2005, 10:05 AM   #5
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Modules loading at startup badlife69 Linux - Newbie 1 04-14-2005 10:23 AM
loading programs at startup MR_UNO Linux - Software 1 01-28-2005 11:17 PM
module not loading at startup kysen Debian 3 04-17-2004 08:04 PM
postfix not loading on startup cjpsparks Linux - General 2 11-07-2003 11:43 AM
Loading moduls at startup? Marcel Linux - General 6 06-25-2001 02:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration