LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-13-2009, 05:05 AM   #1
knobby67
Member
 
Registered: Mar 2006
Posts: 622

Rep: Reputation: 42
how to check up on rc.local ?


hi all,
I using /etc/rc.local to start up program. I know it works fromcomand promp as sh /etc/rc.local runs the code, however from boot nothing runs. Is there anyway I can check up on this, from a log for exaple?

I'musing Debian Lenny. Thanks
 
Old 10-13-2009, 05:09 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
no, it's just arbitrary commands that are run. If you want a log, you'll need to sort that on a line by line basis, e.g. redirecting stderr to a file.
 
Old 10-13-2009, 05:15 AM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,117

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Quote:
I using /etc/rc.local to start up program.
What program? Remember that rc.local runs as the root user, may have a strange environment and does not have an X DISPLAY.
 
Old 10-13-2009, 05:58 AM   #4
knobby67
Member
 
Registered: Mar 2006
Posts: 622

Original Poster
Rep: Reputation: 42
I'm running my own app, which is graphical. So I have a delay to allow X to start, perhaps I need to run from gnome->sesions->startup programes?
 
Old 10-13-2009, 06:34 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
perhaps I need to run from gnome->sesions->startup programes?
That would be your best option, since you need X.
 
Old 10-13-2009, 06:35 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
Quote:
Originally Posted by knobby67 View Post
I'm running my own app, which is graphical. So I have a delay to allow X to start, perhaps I need to run from gnome->sesions->startup programes?
well yes, and note that there is no USER in the bootup process, so clearly you can't run anything for a certain user (exluding su stuff), as no one has logged in yet.
 
  


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
Use Thunderbird to check local mail? Dr3n Linux - Software 5 11-11-2012 01:49 AM
check local ip on solaris 10 conandor Linux - Networking 3 04-17-2008 05:28 AM
How do you check what your local IP address is from a konsole. Using Kubuntu. Xel'naga666 Linux - Networking 3 02-01-2007 06:33 PM
how to check if working on local computer or a server cad Linux - Networking 7 01-03-2007 07:42 AM
how to check local mail with thunderbird mert Linux - Software 2 11-15-2004 05:52 AM

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

All times are GMT -5. The time now is 04:53 AM.

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