From owner-freebsd-ports Sun May 12 23:10:19 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0645037B404 for ; Sun, 12 May 2002 23:10:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4D6A0245620; Sun, 12 May 2002 23:10:00 -0700 (PDT) (envelope-from gnats) Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117]) by hub.freebsd.org (Postfix) with ESMTP id 9DDD737B404 for ; Sun, 12 May 2002 23:04:09 -0700 (PDT) Received: from www.freebsd.org (localhost [127.0.0.1]) by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g4D649hG031798 for ; Sun, 12 May 2002 23:04:09 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.2/8.12.2/Submit) id g4D649rI031797; Sun, 12 May 2002 23:04:09 -0700 (PDT) Message-Id: <200205130604.g4D649rI031797@www.freebsd.org> Date: Sun, 12 May 2002 23:04:09 -0700 (PDT) From: Ari Suutari To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/38020: ports/www/jakarta-tomcat4: stop tomcat via java -jar bootstrap.jar stop Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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