From owner-freebsd-java Mon Mar 24 23:30:38 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 9636837B414 for ; Mon, 24 Mar 2003 23:29:59 -0800 (PST) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4F9F44102 for ; Mon, 24 Mar 2003 23:09:26 -0800 (PST) (envelope-from ari.suutari@syncrontech.com) Received: from coffee.syncrontech.com (coffee.syncrontech.com [62.71.8.37]) by guinness.syncrontech.com (8.12.8/8.12.8) with ESMTP id h2P79OGS080799; Tue, 25 Mar 2003 09:09:24 +0200 (EET) (envelope-from ari.suutari@syncrontech.com) From: Ari Suutari To: Brent Verner , Ernst de Haan Subject: Re: [patch] daemonctl.c modified to use JAVA_HOME environment variable Date: Tue, 25 Mar 2003 09:09:23 +0200 User-Agent: KMail/1.5 Cc: freebsd-java@FreeBSD.ORG References: <20030207163217.GA99329@rcfile.org> <200303241032.54982.ernst.dehaan@nl.wanadoo.com> <20030324142632.GA36430@rcfile.org> In-Reply-To: <20030324142632.GA36430@rcfile.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200303250909.23762.ari.suutari@syncrontech.com> X-Scanned-By: MIMEDefang 2.24 (www . roaringpenguin . com / mimedefang) X-Spam-Status: No, hits=-26.1 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT 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 Hi, 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 :-) > 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: - 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. Actually, there is something more, when starting tomcat with tomcat41ctl start, it doesn't start as daemon. Or is this not implemented yet ? Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message