From owner-freebsd-java@FreeBSD.ORG Thu Oct 20 22:15:53 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F8B716A41F for ; Thu, 20 Oct 2005 22:15:53 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 273D843D5A for ; Thu, 20 Oct 2005 22:15:51 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost [127.0.0.1]) by arabica.esil.univ-mrs.fr (8.13.4/8.13.4) with ESMTP id j9KMFnWe004083; Fri, 21 Oct 2005 00:15:50 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.4/8.13.4/Submit) id j9KMFnaY004082; Fri, 21 Oct 2005 00:15:49 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) X-Authentication-Warning: arabica.esil.univ-mrs.fr: rv set sender to herve.quiroz@esil.univ-mrs.fr using -f Date: Fri, 21 Oct 2005 00:15:48 +0200 From: Herve Quiroz To: Tomas Verbaitis Message-ID: <20051020221548.GA3979@arabica.esil.univ-mrs.fr> Mail-Followup-To: Tomas Verbaitis , freebsd-java@freebsd.org References: <20051020175328.GA7205@megalogika.lt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051020175328.GA7205@megalogika.lt> User-Agent: Mutt/1.4.2.1i Cc: freebsd-java@freebsd.org Subject: Re: Tomcat 5.5 startup and shutdown.. again X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2005 22:15:53 -0000 Hi Tomas, On Thu, Oct 20, 2005 at 08:53:28PM +0300, Tomas Verbaitis wrote: > Having both tools available can create some mess: you can launch at > least two copies of Tomcat using both tools, you can not stop Tomcat > launched with rcNG script using tomcat55ctl and vice versa. Indeed. > Then i checked org.apache.catalina.startup.Catalina and found that it > doesn't do anything spectacular at shutdown: it just calls stop(), which > is also called when CatalinaShutdownHook() is run. Hence, i assume, it's > equally safe to stop Tomcat by sending it a SIGTERM. > > This would also simplify rcNG script, as it could use default > /etc/rc.subr functions. That's a good idea IMHO. Anyway, there seem to be a problem with your patch (although I have not tested it yet). > --- tomcat.sh.in.orig Wed Sep 14 15:30:23 2005 > +++ tomcat.sh.in Thu Oct 20 20:18:32 2005 > -procname="java" > +procname="%%JAVA_HOME%%/bin/java" [...] > --- Makefile.orig Thu Sep 29 18:08:23 2005 > +++ Makefile Thu Oct 20 20:35:40 2005 > @@ -64,7 +64,8 @@ > + JAVA_HOME=${JAVA_HOME} Here you define ${procname} to be hardcoded from a JAVA_HOME value in the port. This JAVA_HOME is set at install time but the rcNG script allows to override JAVA_HOME at run-time: jakarta_tomcat%%TOMCAT_VERSION%%_java_home What will happen if the JAVA_HOME from port install stage and the one set in rc.conf are different? > If port maintainers think it makes sense, i can file a PR, so this > proposal does not get forgotten -- Herve promised not to touch tomcat55 > until other Tomcat ports are fixed, so it can take time :) Well, I assume you refer to my last PR change-state. Actually I plan to make sure that the refactored www/jakarta-tomcat55 port is in good shape and that community had time to test it before we merge its improvements into the other tomcat ports. I think we need to first fix the security issues that Jan Grant pointed out. But if you can find a way to fix the problem I outlined above and depending on the maintainer's approval regarding this, I can commit this as well. Herve