LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to start scriptfile(tomcat) automatically at boot-time run (https://www.linuxquestions.org/questions/linux-general-1/how-to-start-scriptfile-tomcat-automatically-at-boot-time-run-25464/)

fmohideen76 07-10-2002 04:39 AM

How to start scriptfile(tomcat) automatically at boot-time run
 
Dear all,
I have installed tomcat-jakarta webserver in my Linux(redhat7.3) machine. I want to run this ./catalina.sh(for to start the tomcat) at boot-time.

Please tell me how to do the things.

I tried in following way.

I put the .catalina.sh link(/usr/local/tomcat4.0.3/bin/catalina.sh) into the
/etc/rc.d/init.d directory

Here, the link is perfect.

Note:
If I will start the tomcat jakarta manually , then it is working fine
#cd /usr/local/tomcat4.0.3/bin
#./catalina.sh start

trickykid 07-10-2002 05:25 AM

If you add/edit it to your rc.local it should work with no problems..

fmohideen76 07-10-2002 06:01 AM

pl can u explain it, what i supposed to do with rc.local file.
is there in /etc/rc.d directory.

biosx 07-10-2002 06:52 AM

Re: How to start scriptfile(tomcat) automatically at boot-time run
 
Quote:

Originally posted by fmohideen76

Note:
If I will start the tomcat jakarta manually , then it is working fine
#cd /usr/local/tomcat4.0.3/bin
#./catalina.sh start

Wait, did you write the two lines into the file exactly like that? If so, just get rid of the "#" in front of each one (the comments).

Forgive me if this isn't your problem.

Also, you don't need to cd to the directory first and then execute it, you can just write:

/usr/local/tomcat4.0.3/bin/catalina.sh

Just make sure the script is executable and you're fine.

good luck!

DavidPhillips 07-11-2002 10:44 PM

the easy way to add this to rc.local is like this

run this as a command

echo "/usr/local/tomcat4.0.3/bin/catalina.sh" >> /etc/rc.d/rc.local


or edit the file /etc/rc.d/rc.local


All times are GMT -5. The time now is 06:24 AM.