From owner-freebsd-java@FreeBSD.ORG Sun Jun 26 12:01:44 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 0E80816A41C for ; Sun, 26 Jun 2005 12:01:44 +0000 (GMT) (envelope-from mj-mailinglist@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 5F34943D5D for ; Sun, 26 Jun 2005 12:01:43 +0000 (GMT) (envelope-from mj-mailinglist@gmx.de) Received: (qmail 4300 invoked by uid 0); 26 Jun 2005 12:01:41 -0000 Received: from 85.74.10.59 by www19.gmx.net with HTTP; Sun, 26 Jun 2005 14:01:41 +0200 (MEST) Date: Sun, 26 Jun 2005 14:01:41 +0200 (MEST) From: "Martin Jakob" To: herve.quiroz@esil.univ-mrs.fr MIME-Version: 1.0 X-Priority: 3 (Normal) X-Authenticated: #1630361 Message-ID: <15241.1119787301@www19.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org Subject: Re: Re: RFC: New port for using Tomcat with jakarta-commons-daemon (jscv) 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: Sun, 26 Jun 2005 12:01:44 -0000 Hello Herve, > ... > Anyway, your current port provides a good base to work on. There are > several other approaches to the "Tomcat launcher and run-time argument > passing" that have been suggested or implemented so far. I am not a true > user of Tomcat myself, so I can't really comment on their respective > ease of use, and viability. So I would be glad if all people concerned > by such issue could report on the various approaches so far. > > IMHO, the point is that we need a separate port to implement this Tomcat > launcher so that we don't replicate the work in each Tomcat port. > Moreover, having such a separation (tomcat / tomcat-launcher) would > allow for several kinds of launcher to be part of the ports tree, in > case we would not agree on a particular one. I agree. Splitting it in a generic port (jakarta-commons-daemon) and a "specialized" one, to start tomcat is a better solution. The tomcat-launcher port (hm, maybe a suitable name?) would then only consist of the tomcat startscript for /usr/local/etc/rc.d > I will test your patch and comment on it ASAP. Thanks, i am looking forward to it. Any suggestions are very welcome! > > FYI, PRs related to this issue: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/38018 > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/38020 > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/59571 > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/74344 > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/75143 > > Please report if any is missing from the list... I must confess, i did not search the PR database, only the mailing list archives. So this PRs are new to me. Extending the tomcatctl programm is interesting, but i have not tried the patches. I did try to use the Java Service Wrapper from http://wrapper.tanukisoftware.org, but i could not get it to run. So i concentratet on the solution from the Apache people, where i had your port as a starting point. -- Martin > On Sun, Jun 19, 2005 at 02:45:25PM +0200, Martin Jakob wrote: > > > Hi, > > > > I hope this is the correct list to post this message, because it has tomcat > > as > > its main topic, but well, its also about creating/improving a port, so... > > > > Since i had to start tomcat with different jdks and/or startup-parameters, > > i sat down and tried to use the jscv from > > http://jakarta.apache.org/commons/daemon/jsvc.html > > I found the port from Herve Quiroz, extended it a bit and added a rcNG > > tomcat.sh controll-script. > > > > The port works quite well on my test system, so maybe its usefull for other > > people as well. I tested it with jdk1.4.2, jdk1.5.0, jakarta-tomcat-5.0 and > > the new jakarta-tomcat-5.5.9 port. Just changing the variables in rc.conf > > and > > restart the daemon switches the used jdk (and other parameters). > > > > I am sure there are more glitches in the port, but here are some points > > where i need input and ideas from other people: > > > > - the name > > "jakarta-tomcat-daemon" is not an official name, i used it for the tests. > > Any better ideas? > > > > - the patch "patch-jsvc-unix.c" > > its more or less a hack to show the complete path of the process in ps. I > > added > > this, so that i could use the builtin rcNG functions for > > stop/restart/status. > > Maybe someone with better knowledge of C can comment on this hack? > > > > - dependencies > > at the moment there are no tomcat dependencies regarded in the Makefile. > > > > - shutdown time > > it really takes some time after /usr/local/etc/rc.d/tomcat.sh (stop|restart) > > is > > executed to stop/restart the process. Again, any ideas what could cause > > this? > > > > Credits: > > Based on the ports/scripts from Herve Quiroz and clement (apache2) > > > > So, now have fun with this port :) > > > > --Martin