|
Home > Archive > Unix questions > March 2004 > run tomcat as a deamon?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
run tomcat as a deamon?
|
|
| Johan Louwers 2004-03-29, 3:35 am |
| I have installed jakarta-tomcat version 5.0.19 on a Sun Solaris 9 box.
It just is working great buth. When I start the services it is not
running in a deamon mode. Every time I close the telnet session used
to start the services tomcat simply stops.
I start the application as user webusr and as root buth the problem is
still there, close the telnet connection to the server and tomcat
stops... I start tomcat with the startup.sh script that installs with
tomcat.
Anybody is having a answer on this?
Regards,
Johan.
| |
| Johan Louwers 2004-03-29, 7:39 am |
| Solved,
There is somthing strange on this. When started from sh we have a
problem when we start from bash we don't
regards,
Johan.
| |
| ITguy_uk 2004-03-29, 10:39 am |
| Johan,
I had a very smililar question a while ago and it seems you can do one
of two things:
1. Use the jsvc tool, which is detailed on the install page of Tomcat:
http://jakarta.apache.org/tomcat/to...-doc/setup.html
2. When you run the Tomcat server in the command prompt suffix it with
"nohup" (No hang up). When you start a process within a shell the new
process is forked from the parent shell, when you close the parent
shell the child process is also stopped.
It seemed to me that it was preferable to run the Tomcat server using
JSVC as using the nohup command seemed a bit of hack (I maybe wrong on
this).
If anyone can explain this better than me please do as this is only
what I managed to glean from various web pages and the assistance of
some of the contributors here.
Johan Louwers <suntacNOSPAMPLEASE@dds.nl> wrote in message news:<odlf605j4adn3gscfls5nlrebvh4nud1au@4ax.com>...
> I have installed jakarta-tomcat version 5.0.19 on a Sun Solaris 9 box.
> It just is working great buth. When I start the services it is not
> running in a deamon mode. Every time I close the telnet session used
> to start the services tomcat simply stops.
>
> I start the application as user webusr and as root buth the problem is
> still there, close the telnet connection to the server and tomcat
> stops... I start tomcat with the startup.sh script that installs with
> tomcat.
>
> Anybody is having a answer on this?
>
> Regards,
> Johan.
|
|
|
|
|