Its not clear there on unix can you explain us bit clearly
Main Topics
Browse All TopicsTOMCAT as a service i Unix System
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi ,
Thats fine but i want to start as a service . I mean if i do
ps -ef |grep tomcat can i see the service of tomcat i tried to do that but not able to find the service running.
Simple question i want to kill the tomcat if it running . If its not running i want to make up i want to undertstand what is the service name to identtify tomcat in unix.
Thanks,
That's because it runs as a java process with a varying array of startup config options appended to the command. For instance, one might see a startup line like this (displayed via `/usr/ucb/ps -auxwww|grep java`):
root 7734 0.0 18.231055441461896 ? S Dec 05 13:52 /usr/j2se/bin/java -Djava.awt.headless=true -Xms3072M -Xmx3072M -XX:MaxPermSize=128m -Djava.endorsed.dirs=/home
If you want to start it up @ entering init level 3, you can follows the steps outlined above. Remember to set your JAVA_HOME variable before calling the startup.sh script.
Just to make sure I understand correctly what you want:
a) You have some sort of Unix system
b) You want to run a 'tomcat' on it as a "server process"
A process running as background (or "server process") is
called a "daemon" (or "damon") in Unix -- Windows tends
to call this a "service".
c) Sun introduced the concept of "services" in Unix with their
recent Solaris 10 OS.
To run tomcat as a service in Unix therefore means that you
want to have it running on Solaris 10 (or newer) under it's
svc framework.
- Create a manifest to define the service (something like
/var/svc/manifest/network/
The file should be owned by root, group sys with permission
444. An example can be found at
http://www.experts-exchang
- Create a start/stop script for your application (something
like /lib/svc/method/svc-my-tom
The file should be owned by root, group bin with permission
555.
- Load the configuration from the XLM file using
svccfg import /var/svc/manifest/network/
- Start (enable) the service with
svcadm enable my-tomcat
- Check if it's up and running with
svcs -xv
To check if tomcat is running as a process, use (on Solaris)
/usr/ucb/ps auxwwwwwww | grep tomcat
Business Accounts
Answer for Membership
by: Ajay-SinghPosted on 2007-12-13 at 10:10:12ID: 20466181
http://www.informit.com/ar ticles/art icle.aspx? p=336708 rticles/ar ticle.aspx ?p=336708& seqNum=2&r l=1>
<http://www.informit.com/a
&seqNum=2&rl=1