From jonc@wapsolutions.co.nz  Wed Feb 20 12:42:54 2002
Return-Path: <jonc@wapsolutions.co.nz>
Received: from wapsolutions.co.nz (port-91-96.fastadsl.net.nz [203.96.91.96])
	by hub.freebsd.org (Postfix) with ESMTP id 0ABA337B402
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Feb 2002 12:42:48 -0800 (PST)
Received: (from jonc@localhost)
	by wapsolutions.co.nz (8.11.6/8.11.6) id g1KKgZS04526;
	Thu, 21 Feb 2002 09:42:35 +1300 (NZDT)
	(envelope-from jonc)
Message-Id: <200202202042.g1KKgZS04526@wapsolutions.co.nz>
Date: Thu, 21 Feb 2002 09:42:35 +1300 (NZDT)
From: Jonathan Chen <jonc@wapsolutions.co.nz>
Reply-To: Jonathan Chen <jonc@wapsolutions.co.nz>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Installation & startup fixes for jakarta-tomcat-3.2.3_3
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35158
>Category:       ports
>Synopsis:       Installation & startup fixes for jakarta-tomcat-3.2.3_3
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    znerd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 20 12:50:01 PST 2002
>Closed-Date:    Thu Feb 21 01:02:54 PST 2002
>Last-Modified:  Thu Feb 21 01:10:01 PST 2002
>Originator:     Jonathan Chen
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD central.wapsolutions.co.nz 4.5-STABLE FreeBSD 4.5-STABLE #0: Fri Feb 15 08:52:40 NZDT 2002 root@c2.wapsolutions.co.nz:/usr/obj/usr/src/sys/GENERIC i386
>Description:
The port fails to install due to a missing startup file.
On startup, Jakarta Tomcat will hang the console, until a Control-C.
However, this also stops the tomcat daemon.
>How-To-Repeat:
Try port install.  Install. Reboot.
>Fix:
diff -ru /usr/ports/www/jakarta-tomcat/Makefile ./Makefile
--- /usr/ports/www/jakarta-tomcat/Makefile	Wed Feb 20 02:52:30 2002
+++ ./Makefile	Thu Feb 21 09:22:56 2002
@@ -85,7 +85,7 @@
 	| ${SED} "/%%APP_SHORTNAME%%/s//${APP_SHORTNAME}/" \
 	| ${SED} "/%%APP_HOME%%/s//${APP_HOME:S/\//\\\//g}/" \
 	| ${SED} "/%%LOG_DIR%%/s//${LOG_DIR:S/\//\\\//g}/" \
-	| ${SED} "/%%STARTUP_SCRIPT_NAME%%/s//${PORTNAME}.sh/" \
+	| ${SED} "/%%RC_SCRIPT_NAME%%/s//${STARTUP_ORDER}.${PORTNAME}.sh/" \
 	| ${SED} "/%%JAVA_HOME%%/s//${JAVA_HOME:S/\//\\\//g}/" \
 	| ${SED} "/%%USER_NAME%%/s//${USER_NAME}/" \
 	| ${SED} "/%%STDOUT_LOG%%/s//${STDOUT_LOG:S/\//\\\//g}/" \
@@ -95,7 +95,7 @@
 	${CHMOD} 6554 ${CTL_SCRIPT}
 
 	@# Install the startup script
-	${CP} ${FILESDIR}/${PORTNAME}.sh ${STARTUP_SCRIPT}
+	${CP} ${CTL_SCRIPT} ${STARTUP_SCRIPT}
 	${CHMOD} 0554 ${STARTUP_SCRIPT}
 
 	@# Create the directories that the application will create at the
diff -ru /usr/ports/www/jakarta-tomcat/files/tomcatctl ./files/tomcatctl
--- /usr/ports/www/jakarta-tomcat/files/tomcatctl	Wed Feb 20 02:53:41 2002
+++ ./files/tomcatctl	Thu Feb 21 09:23:50 2002
@@ -68,7 +68,7 @@
 	if [ "${AS_RC_SCRIPT}" = "yes" ]; then
 		echo -n " %%APP_SHORTNAME%%"
 	fi
-	su - ${USER_NAME} -c "(cd ${APP_HOME} && ${JAVA_CMD} -cp ${CLASSPATH} -Dtomcat.home=${APP_HOME} org.apache.tomcat.startup.Tomcat) >> ${STDOUT_LOG} 2>> ${STDERR_LOG}"
+	su - ${USER_NAME} -c "(cd ${APP_HOME} && ${JAVA_CMD} -cp ${CLASSPATH} -Dtomcat.home=${APP_HOME} org.apache.tomcat.startup.Tomcat) >> ${STDOUT_LOG} 2>> ${STDERR_LOG}" &
 }
 
 # Function that stops the application
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->znerd 
Responsible-Changed-By: petef 
Responsible-Changed-When: Wed Feb 20 13:12:22 PST 2002 
Responsible-Changed-Why:  
Over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=35158 
State-Changed-From-To: open->closed 
State-Changed-By: znerd 
State-Changed-When: Thu Feb 21 01:02:54 PST 2002 
State-Changed-Why:  
Fixed. A file in files/ was missing. Added it. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=35158 

From: Ernst de Haan <ernsth@nl.euro.net>
To: freebsd-gnats-submit@FreeBSD.org, jonc@wapsolutions.co.nz
Cc:  
Subject: Re: ports/35158: Installation & startup fixes for jakarta-tomcat-3.2.3_3
Date: Thu, 21 Feb 2002 10:00:48 +0100

 Fixed the problem by adding a new files/jakarta-tomcat.sh file.
 
 Ernst
>Unformatted:
