This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes How to run tomcat 5.5.17 as a services in FC6..? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "How to run tomcat 5.5.17 as a services in FC6..?" Watch "How to run tomcat 5.5.17 as a services in FC6..?" New topic

How to run tomcat 5.5.17 as a services in FC6..?

prabhu pandurangan
Ranch Hand

Joined: May 23, 2008
Posts: 147
Hi Members,

I have installed tomcat by extracting the files and have made the tomcat up, but i have to run it as a services. Please let me know the configuration settings to be made for running tomcat as a services in FC6 machine. For now im making tomcat up by "./". Instead i have to run it as "service tomcat5 start".

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

The Fedora/Red Hat services are defined as scripts in the /etc/init.d directory. They have a very specific design.

From time to time, someone does an RPM for tomcat that will include (and install) a service script. In the case of Red Hat Enterprise, it's part of the basic distribution. I don't believe that there's currently one for Fedora, but if you Google for "jpackage tomcat", you may find one. Over the years I've ended up writing my own init scripts as often as not.

The main reason why Fedora doesn't do this better is because Fedora doesn't include proprietary software, and the Sun JVM is proprietary. The GCJ Java that does come with recent Linux releases hasn't been sufficiently functional to use to run Tomcat. New open-source Java efforts are changing that, but I don't think they're there yet. They might also have had a problem with mixing the Apache software licenses with the Linux GPL licenses.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: How to run tomcat 5.5.17 as a services in FC6..?
It's not a secret anymore!