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 |
If you add/edit it to your rc.local it should work with no problems..
|
pl can u explain it, what i supposed to do with rc.local file.
is there in /etc/rc.d directory. |
Re: How to start scriptfile(tomcat) automatically at boot-time run
Quote:
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! |
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. |