?
Solved

start tomcat when boot

Posted on 2003-03-12
2
Medium Priority
?
579 Views
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.

0
Comment
Question by:stanleyhuen
2 Comments
 

Expert Comment

by:Highlander105
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...
0
 
LVL 1

Accepted Solution

by:
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.

Donal
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 9 hours left to enroll

621 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