start tomcat when boot

Posted on 2003-03-12
Medium Priority
Last Modified: 2010-04-20
How can I start tomcat when boot?
I am running redhat linux, the tomcat should be run by "www" not root.

Question by:stanleyhuen
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 8120167
Copy a script that you now from the /etc/rc.d/init folder and rechange the start up commando to that from tomcat.
You can also create a new script with the things in for starting tomcat.

After that all you need to set a start up link in the rc[0-6].d folder. S = start / K = Kill. The number is the range that he does it...

Succes with it...

Accepted Solution

DonalS earned 500 total points
ID: 8124998
Hi stanleyhuen,

You can add a line in /etc/rc.d/rc.local like this :

   su - www -c /path/to/tomcat/tomcatFile

Just change /path/to/tomcat/tomcatFile to the real path/file name.

Hope this can meet your needs.


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month13 days, 3 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question