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? |
dmesg might or just check your /var/log/messages file
|
No, nothing is visible in /var/log/messages or dmesg
messages on shows that some other programs has been started... |
Does it actually start if you do it manually from the CLI, etc?
|
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. |