Date: Thu, 21 Feb 2002 09:42:35 +1300 (NZDT) From: Jonathan Chen <jonc@wapsolutions.co.nz> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/35158: Installation & startup fixes for jakarta-tomcat-3.2.3_3 Message-ID: <200202202042.g1KKgZS04526@wapsolutions.co.nz>
next in thread | raw e-mail | index | archive | help
>Number: 35158 >Category: ports >Synopsis: Installation & startup fixes for jakarta-tomcat-3.2.3_3 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 20 12:50:01 PST 2002 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202202042.g1KKgZS04526>