aspose file tools*
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 Spring in Action this week in the Spring 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
Author

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

prabhu pandurangan
Ranch Hand

Joined: May 23, 2008
Posts: 120
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 "./startup.sh". Instead i have to run it as "service tomcat5 start".

Regards,
Prabhu.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16142
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to run tomcat 5.5.17 as a services in FC6..?