LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Redhat 9: Where find errors generated from rc.local ? (https://www.linuxquestions.org/questions/linux-general-1/redhat-9-where-find-errors-generated-from-rc-local-140530/)

speedgelb 01-30-2004 06:32 PM

Redhat 9: Where find errors generated from rc.local ?
 
Hello,

I have a problem,

in my boot script rc.local I start my Tomcat service.
In my /etc/profile I set my JAVA_HOME to my jdk dir.

But the tomcat wonīt start, and Iīm not able to see the errors generated, since the login screen appears just after 1 sec.

My thought is that the JAVA_HOME variable hasnt been set yet, when the rc.local script runs.

Anyone has a solution to this?

Where can I see the errors generated so that I can verify that this is the problem?

trickykid 01-30-2004 07:05 PM

dmesg might or just check your /var/log/messages file

speedgelb 01-30-2004 07:27 PM

No, nothing is visible in /var/log/messages or dmesg

messages on shows that some other programs has been started...

trickykid 01-30-2004 07:43 PM

Does it actually start if you do it manually from the CLI, etc?

speedgelb 01-30-2004 07:49 PM

Yes, it does.

As I wrote, a possible reason is that the operating system hasnīt ranned the /etc/profile script yet when it runs the rc.local, which means that when Tomcat tries to start, it cant find its JAVA_HOME variable. That is just a guess from me.

So if I start Tomcat manually after bootup, or try to run the startscript, it does start normally without errors.


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