From owner-freebsd-java Thu Mar 20 8:29:56 2003 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 8806137B401 for ; Thu, 20 Mar 2003 08:29:54 -0800 (PST) Received: from habanero.hesketh.net (habanero.hesketh.net [66.45.6.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A3F443F3F for ; Thu, 20 Mar 2003 08:29:53 -0800 (PST) (envelope-from brent@mutt.rcfile.org) X-Received-From: brent@mutt.rcfile.org X-Delivered-To: freebsd-java@FreeBSD.ORG X-Originating-IP: [66.57.229.60] Received: from mutt.rcfile.org (rdu57-229-060.nc.rr.com [66.57.229.60]) by habanero.hesketh.net (8.12.8/8.12.8) with ESMTP id h2KGTkVC019353; Thu, 20 Mar 2003 11:29:47 -0500 X-Spam-Filter: check_local@habanero.hesketh.net by digitalanswers.org Received: from mutt.rcfile.org (localhost [127.0.0.1]) by mutt.rcfile.org (8.12.8/8.12.7) with ESMTP id h2KGTqa3001998; Thu, 20 Mar 2003 11:29:52 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.12.8/8.12.8/Submit) id h2KGTpw6001997; Thu, 20 Mar 2003 11:29:51 -0500 (EST) Date: Thu, 20 Mar 2003 11:29:51 -0500 From: Brent Verner To: Milo Hyson Cc: Sheldon Hearn , Doug Poland , leafy@leafy.idv.tw, freebsd-java@FreeBSD.ORG Subject: Re: Specifying jdk for tomcat 4.1.18 Message-ID: <20030320162951.GA1608@rcfile.org> References: <18118.63.104.35.130.1048108215.squirrel@email.polands.org> <3E78DDFF.7000500@cyberlifelabs.com> <32007.63.104.35.130.1048109532.squirrel@email.polands.org> <3E78E6C2.2090209@cyberlifelabs.com> <1616.172.16.1.33.1048125648.squirrel@email.polands.org> <20030320020719.GA70161@leafy.idv.tw> <1671.172.16.1.33.1048126904.squirrel@email.polands.org> <20030320041206.GA46244@rcfile.org> <20030320123623.GB54999@starjuice.net> <3E79E8A4.1020302@cyberlifelabs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E79E8A4.1020302@cyberlifelabs.com> X-muttrc: $Id: .muttrc,v 1.10 2003/02/08 08:35:24 brent Exp $ X-uname: FreeBSD 4.8-RC #6: Thu Mar 20 02:22:17 EST 2003 root@mutt.rcfile.org:/usr/obj/usr/src/sys/MUTTS User-Agent: Mutt/1.5.3i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org [2003-03-20 08:13] Milo Hyson said: | Sheldon Hearn wrote: | | On (2003/03/19 23:12), Brent Verner wrote: | | I have begun to implement a daemonctl.c that uses a( set of xml) | config file(s) to control its actions. | | Why not simply modify the ctlers to honour the JAVA_HOME envar when | present, otherwise behave the same as on other platforms? | | That way, you introduce a superset of the behaviour found on other | platforms that is orthogonal with both the traditional Unix environment | paradigm (envars override defaults) and also with the Java paradigm | (JAVA_HOME means something special). | | I agree. At the very least, I would expect a FreeBSD port to provide the option | to behave like the official stock release. I agree wholly with (both of) you on this issue, which is why I've tried to implement a flexible setuid/setgid wrapper around the scripts used by the official releases. I only chose to use xml because I didn't want to write YACFP (yet another config file parser). The calling environment is passed to the script, so the setuid wrapper _could_ be as simple as calling thru to the /usr/local/jakarta-tomcat4.1/bin/catalina.sh script. b -- "Develop your talent, man, and leave the world something. Records are really gifts from people. To think that an artist would love you enough to share his music with anyone is a beautiful thing." -- Duane Allman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message