Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to start Tomcat webserver in Linux automatically 1

Status
Not open for further replies.

noonjy

Programmer
Mar 13, 2002
8
MY
How to start Tomcat webserver in Linux automatically?


Thanks in advance
Sunu

 
The easiest thing to do is to create a simple text file in the /etc/rc.d/rc3.d/ folder and put the command(s) necessary to start Tomcat in it. Call the file Stomcat and give it execute permissions --> "chmod 755 Stomcat". I don't use Tomcat, but I saw in another post that the command is "/usr/local/tomcat/bin/startup.sh". If this is true, just put that one command in the text file. In this case, you could alternatively just create a symlink to that file in the rc3 directory instead if you wanted to.

If you boot to the GUI, put this script in rc5.d also.

You'll notice that in the rc*.d directories, every link or script starts with either an S or K. If it starts with an S, then it will start at boot up. If it starts with a K, then it won't start, and if its running, it will kill the process. Most of them also have numbers; this is the order that the processes will be started or stopped.


ChrisP ------------------------------------------------------------------------------
If somebody helps you, please vote for them for "Tipmaster of the Week" by giving them a "purple star". This can be done by clicking the "Mark this post as a helpful/expert post" button.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top