From owner-freebsd-java@FreeBSD.ORG Tue Jan 6 05:57:48 2004 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 7AFA616A4CE for ; Tue, 6 Jan 2004 05:57:48 -0800 (PST) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AD6A43D72 for ; Tue, 6 Jan 2004 05:57:17 -0800 (PST) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.30; FreeBSD) id 1Adrho-0002jr-Mf; Tue, 06 Jan 2004 15:57:12 +0200 Date: Tue, 6 Jan 2004 15:57:12 +0200 From: Sheldon Hearn To: Panagiotis Astithas Message-ID: <20040106135712.GK97880@starjuice.net> References: <200312291507.08541.past@noc.ntua.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200312291507.08541.past@noc.ntua.gr> User-Agent: Mutt/1.5.4i cc: java@freebsd.org Subject: Re: Tomcat's daemonctl script 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: Tue, 06 Jan 2004 13:57:48 -0000 On (2003/12/29 15:07), Panagiotis Astithas wrote: > I have resorted temporarily to creating symlinks from jdk1.4.2 to > jdk1.4.1, but overall I agree with Sheldon Hearn's opinion in: > http://docs.freebsd.org/cgi/mid.cgi?20031215123601.GU13737 Could > we please provide an regular rc.d script as we do for every other > service? For now, just use $CATALINA_HOME/bin/catalina.sh. It supports start and stop as expected, although you'll need to defined JAVA_HOME and CATALINA_HOME work for it to work from $LOCALBASE/etc/rc.d . Plus you get easy debugging for free, e.g.: catalina.sh jpda start There's some breakage in $CATALINA_HOME/bin/setclasspath.sh that stops debugging working, but it's easily fixed. See the included patch. Ciao, Sheldon. --- bin/setclasspath.sh Mon Oct 27 17:26:34 2003 +++ /usr/local/jakarta-tomcat4.1/bin/setclasspath.sh Tue Jan 6 15:54:16 2004 @@ -53,7 +53,7 @@ # Set standard commands for invoking Java. _RUNJAVA="$JAVA_HOME"/bin/java -if [ ! "$os400" ]; then +if ! $os400; then _RUNJDB="$JAVA_HOME"/bin/jdb fi _RUNJAVAC="$JAVA_HOME"/bin/javac