Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 May 2002 23:04:09 -0700 (PDT)
From:      Ari Suutari <ari.suutari@syncrontech.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/38020: ports/www/jakarta-tomcat4: stop tomcat via java -jar bootstrap.jar stop
Message-ID:  <200205130604.g4D649rI031797@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         38020
>Category:       ports
>Synopsis:       ports/www/jakarta-tomcat4: stop tomcat via java -jar bootstrap.jar stop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 12 23:10:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ari Suutari
>Release:        4.5-STABLE
>Organization:
Syncron Tech Oy
>Environment:
FreeBSD pommac.syncrontech.com 4.5-STABLE FreeBSD 4.5-STABLE #0: Tue Mar 12 12:12:39 EET 2002     root@pommac.syncrontech.com:/usr/src/sys/compile/POMMAC  i386

>Description:
When tomcat is installed with ports/www/jakarta-tomcat4 port, it uses
daemonctl.c to manage execution of JVM. When daemonctl is used to
stop currently executing tomcat, it does this by issuing kill -SIGTERM
to tomcat process. This causes tomcat to stop immediately, without
normal shutdown activities, like unloading servlets etc. 
>How-To-Repeat:
Install tomcat4 via www/jakarta-tomcat4 port, start it and then stop it.
>Fix:
The shutdown should be handled by issuing command "java -Dcatalina.home=path-to-catalina-home -jar bin/bootstrap.jar stop". 
This causes tomcat to unload servlets gracefully and then stop.
Maybe the current "stop" command of daemonctl.c could be renamed to "kill" or "abort" and "stop" could execute the command above.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205130604.g4D649rI031797>