LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Running Tomcat4 at Boot? (https://www.linuxquestions.org/questions/linux-software-2/running-tomcat4-at-boot-135097/)

Limelight 01-15-2004 10:51 AM

Running Tomcat4 at Boot?
 
Hello...

I've got RedHat Enterprise WS 2.1 running Apache 1.3.x and Tomcat 4.x. I've got the httpd service starting automatically at boot-time, so my Apache server serves up content without any problem.

But, in order to get my Tomcat4 stuff to work, I need to first go to my tomcat4 directory (in my case, it's /usr/local/tomcat/bin) and then do a sh startup.sh which runs the script that launches Tomcat4.

I've tried putting this startup.sh file inside of my /etc/init.d directory, but when the machine boots up, it seems that Tomcat4 still doesn't launch.

I was thinking that this is because startup.sh is a script file and not an actual program. So, I tried making a symbolic link to the startup.sh file inside the /etc/init.d directory. Making the link worked, but Tomcat4 didn't launch when I restarted the box.

Is there a special way to get a script file to automatically run from within the /etc/init.d directory? :confused:

Thanks!!

oiswego 01-15-2004 11:20 PM

on my redhat system (9.0), there is a really cool file called /etc/rc.d/rc.local

that i mod to start certain scripts at boot time (vsftpd binary, my firewall, etc).

try putting the line in there and test it out!!!!


All times are GMT -5. The time now is 10:55 AM.