From owner-freebsd-java@FreeBSD.ORG Fri Feb 11 16:46:42 2005 Return-Path: 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 83F3C16A4CE for ; Fri, 11 Feb 2005 16:46:42 +0000 (GMT) Received: from ms-smtp-04-eri0.southeast.rr.com (ms-smtp-04-lbl.southeast.rr.com [24.25.9.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35FA343D1F for ; Fri, 11 Feb 2005 16:46:39 +0000 (GMT) (envelope-from brent@svalin.rcfile.org) Received: from svalin.rcfile.org (cpe-069-134-146-135.nc.rr.com [69.134.146.135])j1BGkWCh018609; Fri, 11 Feb 2005 11:46:35 -0500 (EST) Received: from svalin.rcfile.org (localhost [127.0.0.1]) by svalin.rcfile.org (8.13.1/8.13.1) with ESMTP id j1BGkrmk015541; Fri, 11 Feb 2005 11:46:53 -0500 (EST) (envelope-from brent@svalin.rcfile.org) Received: (from brent@localhost) by svalin.rcfile.org (8.13.1/8.13.1/Submit) id j1BGkrkN015540; Fri, 11 Feb 2005 11:46:53 -0500 (EST) (envelope-from brent) Date: Fri, 11 Feb 2005 11:46:52 -0500 From: Brent Verner To: Achilleus Mantzios , freebsd-java@freebsd.org Message-ID: <20050211164652.GA15083@rcfile.org> References: <20050211122826.GB61803@gravitas.thebunker.net> <20050211161913.GA67712@gravitas.thebunker.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050211161913.GA67712@gravitas.thebunker.net> X-muttrc: $Id: .muttrc,v 1.10 2003/02/08 08:35:24 brent Exp $ X-uname: FreeBSD 5.3-STABLE #6: Thu Feb 10 03:52:08 EST 2005 root@svalin.rcfile.org:/usr/obj/usr/src/sys/MINI User-Agent: Mutt/1.5.6i X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on svalin.rcfile.org X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: Re: Setting java properties for tomcat5.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 16:46:42 -0000 [2005-02-11 16:19] Matthew Seaman said: | That's certainly a possibility, but it means you need root access in | order to bounce the tomcat server (ie. because the rc.d script will | use su(1) to change the tomcat process to running as user www:www) If | I can avoid that necessity it would be good. I felt the same pain, and ended up implementing an alternate daemonctl program that has external configuration file to define env entries (among other things). http://rcfile.org/daemonctl/ http://svalin.rcfile.org/daemonctl/readme.txt You can fetch the daemonctl-port-0.2.tar.gz file and copy the port into your ports tree and install it from there. The tomcat-rc-script.sh can be used to replace the rc script provided by the tomcat50 port. cheers. Brent