From owner-freebsd-java Thu Mar 20 14:53:47 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 7E10337B401 for ; Thu, 20 Mar 2003 14:53:46 -0800 (PST) Received: from habanero.hesketh.net (habanero.hesketh.net [66.45.6.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 315B043F75 for ; Thu, 20 Mar 2003 14:53:45 -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 h2KMrcVC006869; Thu, 20 Mar 2003 17:53:38 -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 h2KMrma3004374; Thu, 20 Mar 2003 17:53:48 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.12.8/8.12.8/Submit) id h2KMrlmb004373; Thu, 20 Mar 2003 17:53:47 -0500 (EST) Date: Thu, 20 Mar 2003 17:53:47 -0500 From: Brent Verner To: Milo Hyson , Doug Poland , leafy@leafy.idv.tw, freebsd-java@FreeBSD.ORG Subject: Re: Specifying jdk for tomcat 4.1.18 Message-ID: <20030320225347.GA4319@rcfile.org> References: <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> <20030320173304.GT54999@starjuice.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030320173304.GT54999@starjuice.net> 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 19:33] Sheldon Hearn said: | On (2003/03/20 08:13), Milo Hyson wrote: | | [...HTML only...] | | > I agree. At the very least, I would expect a FreeBSD port to provide | > the option to behave like the official stock release. | | Hang on, that's not what this is about. Even with the XML config file | approach, *ctl could still default to the VM for which it was built in | the absence of that XML file. | | What I'm saying is that an XML file doesn't seem justified, given that a | simple, traditional solution alreayd exists for this kind of thing (an | envar). The problem is a little bigger than _just_ the JAVA_HOME env issue, which is why I went the external configuration route.... (I am totally open to alternate config file formats) In the current daemonctl.c program, the service in question is started with the following C call. execl("%%JAVA_HOME%%/%%JAVA_CMD%%", "%%JAVA_HOME%%/%%JAVA_CMD%%", "-jar", %%JAVA_ARGS%% "%%JAR_FILE%%", %%JAR_ARGS%% NULL); This works for tomcat, but I wasn't able to coerce jboss to start using those same exec args; specifically, the jboss startup needs a -classpath argument pair. The problem I want to solve is how to use the official startup script(s) in a sane manner through the setuid/setgid daemonctl wrapper. 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