From owner-freebsd-java Mon Mar 24 23:35:19 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 D98DE37B401 for ; Mon, 24 Mar 2003 23:35:13 -0800 (PST) Received: from habanero.hesketh.net (habanero.hesketh.net [66.45.6.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id D204443F85 for ; Mon, 24 Mar 2003 23:35:12 -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 h2P7Z2VC008250; Tue, 25 Mar 2003 02:35:04 -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 h2P7ZIa3049740; Tue, 25 Mar 2003 02:35:18 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.12.8/8.12.8/Submit) id h2P7ZIo6049739; Tue, 25 Mar 2003 02:35:18 -0500 (EST) Date: Tue, 25 Mar 2003 02:35:18 -0500 From: Brent Verner To: Ari Suutari Cc: Ernst de Haan , freebsd-java@FreeBSD.ORG Subject: Re: [patch] daemonctl.c modified to use JAVA_HOME environment variable Message-ID: <20030325073518.GB49578@rcfile.org> References: <20030207163217.GA99329@rcfile.org> <200303241032.54982.ernst.dehaan@nl.wanadoo.com> <20030324142632.GA36430@rcfile.org> <200303250909.23762.ari.suutari@syncrontech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200303250909.23762.ari.suutari@syncrontech.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 X-Spam-Status: No, hits=-14.5 required=5.0 tests=AWL,IN_REP_TO,RCVD_IN_RFCI,REFERENCES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) 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-25 09:09] Ari Suutari said: | Hi, Hiya. | On Monday 24 March 2003 16:26, Brent Verner wrote: | > This has turned into a little more than a patch at this point... :-) | | Well this looks really good. Now I can now drop | my own hacked non-XML version :-) Thank you. You didn't look at the foul code did you :-P | > This should probably be a separate port, and just have each | > dependent package install its xml config into | > /usr/local/etc/daemonct.d/ and create its symlink to the | > daemonctl binary. | > | Sounds good. | | I tried the program. It seems to work mostly ok, but | I noticed two minor problems: There are _many_ more undone bits :-) The TODO file contains a (short) list of things I'm hoping I can make some time Wednesday evening to address. | - when the program is invoked without path | (ie. just say "tomcat41ctl") it dumps core. | This happens on line saying: | | progname = (rindex(argv[0],'/') + 1); | | - when pilot makes an error and types illegal | argument (for example "tomcat41ctl blaah") the | program dumps core. yes, the stuff is really at a proof-of-concept stage to get some discussion going. | Actually, there is something more, when starting | tomcat with tomcat41ctl start, it doesn't start as daemon. | Or is this not implemented yet ? Yes, until the fork() bits are written, the daemonctl program can't fully "manage" the process by pid. I'm currently using the "start" argument to the catalina.sh script. I only left the "run -security" arguments in the example tomcat41ctl.xml to show the eventual goal. /usr/local/jakarta-tomcat4.1/bin/catalina.sh start Thanks much for checking this stuff out. I hope that we can get this stuff into the ports tree, to make FreeBSD an even better platform for java services. cheers. 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