mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
Remove www/tomcat41, No more upstream support
This commit is contained in:
parent
16632f8c6e
commit
a9cbb74730
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=284272
1
MOVED
1
MOVED
@ -2830,3 +2830,4 @@ devel/gccxml||2011-10-22|Has expired: Unmaintained upstream, still requires GCC
|
||||
java/java-tutorial||2011-10-23|Has expired: disappeared from vendor a long time ago
|
||||
lang/smarteiffel||2011-10-23|Has expired: Dead upstream, broken on amd64 with gcc>4
|
||||
sysutils/syslog-ng1||2011-10-24|Has expired: Suggested by syslog-ng upline, no longer supported
|
||||
www/tomcat41||2011-10-24|No more upstream support
|
||||
|
@ -1746,7 +1746,6 @@
|
||||
SUBDIR += tntnet
|
||||
SUBDIR += tokyopromenade
|
||||
SUBDIR += tomcat-native
|
||||
SUBDIR += tomcat41
|
||||
SUBDIR += tomcat55
|
||||
SUBDIR += tomcat6
|
||||
SUBDIR += tomcat7
|
||||
|
@ -1,138 +0,0 @@
|
||||
# New ports collection makefile for: jakarta-tomcat
|
||||
# Date created: 20 Oct 2000
|
||||
# Whom: des
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= apache-tomcat
|
||||
PORTVERSION= 4.1.36
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= www java
|
||||
MASTER_SITES= ${MASTER_SITE_APACHE_TOMCAT}
|
||||
MASTER_SITE_SUBDIR= tomcat-4/v${PORTVERSION}/bin
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Open-source Java web server by Apache, stable 4.1.x branch
|
||||
|
||||
DEPRECATED= No more upstream support
|
||||
EXPIRATION_DATE= 2011-09-10
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.5+
|
||||
NO_BUILD= YES
|
||||
LATEST_LINK= ${APP_SHORTNAME}
|
||||
|
||||
USE_RC_SUBR= tomcat41.sh
|
||||
SUB_FILES= pkg-install pkg-deinstall
|
||||
|
||||
MAJOR_VER= ${PORTVERSION:R}
|
||||
APP_HOME?= ${PREFIX}/${PKGBASE}${PORTVERSION:R}
|
||||
LOG_DIR= ${APP_HOME}/logs
|
||||
PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///} WWWOWN=${TOMCAT_USER} WWWGRP=${TOMCAT_GROUP}
|
||||
APP_TITLE= Apache Tomca
|
||||
APP_SHORTNAME= tomcat${MAJOR_VER:S/.//}
|
||||
TOMCAT_USER?= www
|
||||
TOMCAT_GROUP?= www
|
||||
PW?= /usr/sbin/pw
|
||||
HTTP_PORT?= 8180
|
||||
SHUTDOWN_PORT?= 8005
|
||||
AJP_1_3_PORT?= 8009
|
||||
STDOUT_LOG= ${LOG_DIR}/stdout.log
|
||||
STDERR_LOG= ${LOG_DIR}/stderr.log
|
||||
PID_FILE= /var/run/${APP_SHORTNAME}.pid
|
||||
REPLACE_FILES= ${WRKSRC}/conf/server.xml
|
||||
REPLACE_LIST_TEMP= ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/}
|
||||
JAR_FILE= bin/bootstrap.jar
|
||||
WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
CONF_EXT= sample
|
||||
PLIST_SUB+= CONF_EXT=${CONF_EXT}
|
||||
|
||||
SUB_LIST= AJP_1_3_PORT=${AJP_1_3_PORT} \
|
||||
APP_HOME=${APP_HOME} \
|
||||
APP_SHORTNAME=${APP_SHORTNAME} \
|
||||
APP_TITLE="${APP_TITLE}" \
|
||||
GROUP=${TOMCAT_GROUP} \
|
||||
HTTP_PORT=${HTTP_PORT} \
|
||||
JAR_FILE=${JAR_FILE} \
|
||||
JAVA_HOME=${JAVA_HOME} \
|
||||
PID_FILE=${PID_FILE} \
|
||||
SHUTDOWN_PORT=${SHUTDOWN_PORT} \
|
||||
STDERR_LOG=${STDERR_LOG} \
|
||||
STDOUT_LOG=${STDOUT_LOG} \
|
||||
TOMCAT_HOME=${APP_HOME} \
|
||||
TOMCAT_VERSION=${MAJOR_VER:S/.//} \
|
||||
USER=${TOMCAT_USER} \
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
pre-patch:
|
||||
@${ECHO_MSG} "Installation settings:"
|
||||
@${ECHO_MSG} " Destination directory: ${APP_HOME}"
|
||||
@${ECHO_MSG} " Location of JDK: ${JAVA_HOME}"
|
||||
@${ECHO_MSG} " Location of Java port: ${JAVA_PORT}"
|
||||
@${ECHO_MSG} " Running as (user/group): ${TOMCAT_USER}/${TOMCAT_GROUP}"
|
||||
@${ECHO_MSG} " HTTP port: ${HTTP_PORT}"
|
||||
@${ECHO_MSG} " Shutdown listener port: ${SHUTDOWN_PORT}"
|
||||
@${ECHO_MSG} " AJP 1.3 connector port: ${AJP_1_3_PORT}"
|
||||
@${ECHO_MSG} " Logfile stdout: ${STDOUT_LOG}"
|
||||
@${ECHO_MSG} " Logfile stderr: ${STDERR_LOG}"
|
||||
|
||||
post-patch:
|
||||
@${ECHO_MSG} -n ">> Removing unneeded files..."
|
||||
@${FIND} ${WRKSRC} -type f \( -name '*.bak' -or -name '*.bat' -or -name '*.dll' -or -name '*.exe' -or -name '*.orig' \) -delete
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
|
||||
.for file in ${REPLACE_FILES}
|
||||
@${ECHO_MSG} -n ">> Customizing `basename ${file}`..."
|
||||
@${SED} ${REPLACE_LIST_TEMP} ${file} > ${WRKDIR}/`basename ${file}`
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
.endfor
|
||||
|
||||
pre-install:
|
||||
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
||||
|
||||
do-install:
|
||||
@${ECHO_MSG} -n ">> Creating destination directory..."
|
||||
@${MKDIR} ${APP_HOME}
|
||||
@${MKDIR} ${LOG_DIR}
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
|
||||
@${ECHO_MSG} ">> Copying files to destination directory..."
|
||||
@${CP} ${WRKDIR}/server.xml ${WRKSRC}/conf/
|
||||
@(cd ${WRKSRC};${FIND} conf -type f | ${SED} -e '/${CONF_EXT}/d') \
|
||||
| while read a; do \
|
||||
${MV} ${WRKSRC}/$$a ${WRKSRC}/$$a.${CONF_EXT}; \
|
||||
if [ ! -e "${APP_HOME}/$$a" ]; then \
|
||||
${ECHO_MSG} " Installing local configuration file: ${APP_HOME}/$$a"; \
|
||||
${CP} ${WRKSRC}/$$a.${CONF_EXT} ${WRKSRC}/$$a; \
|
||||
else \
|
||||
${ECHO_MSG} " Preserving local configuration file: ${APP_HOME}/$$a"; \
|
||||
fi; \
|
||||
done
|
||||
@${CP} -R ${WRKSRC}/* ${APP_HOME}
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
|
||||
@${ECHO_MSG} -n ">> Creating log files..."
|
||||
@${INSTALL} /dev/null ${STDOUT_LOG}
|
||||
@${INSTALL} /dev/null ${STDERR_LOG}
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
|
||||
@${ECHO_MSG} -n ">> Creating symlink to tools.jar..."
|
||||
@${LN} -sf ${JAVA_HOME}/lib/tools.jar ${APP_HOME}/common/lib/tools.jar
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
|
||||
@${ECHO_MSG} -n ">> Fixing ownership settings..."
|
||||
@${CHOWN} -R ${TOMCAT_USER}:${TOMCAT_GROUP} ${APP_HOME}/conf ${APP_HOME}/logs \
|
||||
${APP_HOME}/temp ${APP_HOME}/work
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
|
||||
@${ECHO_MSG} -n ">> Fixing permissions..."
|
||||
@${CHMOD} 755 `${FIND} ${APP_HOME} -type d`
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
|
||||
post-install:
|
||||
@${ECHO_MSG} "${APP_TITLE} ${PORTVERSION} has been installed in ${APP_HOME}."
|
||||
|
||||
.include <bsd.port.post.mk>
|
@ -1,2 +0,0 @@
|
||||
SHA256 (apache-tomcat-4.1.36.tar.gz) = 3dd4ab2520721488a1e35fa029b1cbd9e883914d024cea94ae8394e6399f088e
|
||||
SIZE (apache-tomcat-4.1.36.tar.gz) = 9579283
|
@ -1,35 +0,0 @@
|
||||
--- ./conf/server.xml.orig Thu Feb 22 00:41:26 2007
|
||||
+++ ./conf/server.xml Thu Feb 22 00:41:26 2007
|
||||
@@ -10,7 +10,7 @@
|
||||
define subcomponents such as "Valves" or "Loggers" at this level.
|
||||
-->
|
||||
|
||||
-<Server port="8005" shutdown="SHUTDOWN" debug="0">
|
||||
+<Server port="%%SHUTDOWN_PORT%%" shutdown="SHUTDOWN" debug="0">
|
||||
|
||||
|
||||
<!-- Comment these entries out to disable JMX MBeans support -->
|
||||
@@ -88,9 +88,9 @@
|
||||
IP address of the remote client.
|
||||
-->
|
||||
|
||||
- <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
|
||||
+ <!-- Define a non-SSL Coyote HTTP/1.1 Connector -->
|
||||
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
|
||||
- port="8080" enableLookups="true" redirectPort="8443"
|
||||
+ port="%%HTTP_PORT%%" enableLookups="true" redirectPort="8443"
|
||||
acceptCount="100" connectionTimeout="20000"
|
||||
useURIValidationHack="false" disableUploadTimeout="true" />
|
||||
<!-- Note : To disable connection timeouts, set connectionTimeout value
|
||||
@@ -105,9 +105,9 @@
|
||||
clientAuth="false" sslProtocol="TLS" />
|
||||
-->
|
||||
|
||||
- <!-- Define a Coyote AJP/1.3 Connector on port 8009 -->
|
||||
+ <!-- Define a Coyote AJP/1.3 Connector -->
|
||||
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
|
||||
- port="8009" enableLookups="true" redirectPort="8443"
|
||||
+ port="%%AJP_1_3_PORT%%" enableLookups="true" redirectPort="8443"
|
||||
connectionTimeout="0"
|
||||
useURIValidationHack="false"
|
||||
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" />
|
@ -1,47 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# This script does the following.
|
||||
#
|
||||
# * Checks if the PID file exists. If it does, it kills the
|
||||
# process and removes the PID file.
|
||||
#
|
||||
# * Checks if the '%%USER%%' user exists. If it does, then it displays
|
||||
# a message.
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/www/tomcat41/files/Attic/pkg-deinstall.in,v 1.1 2006-02-07 08:50:08 lawrance Exp $
|
||||
#
|
||||
|
||||
USER=%%USER%%
|
||||
PID_FILE=%%PID_FILE%%
|
||||
|
||||
# Make sure we're in the right stage of the process
|
||||
if [ "$2" = "DEINSTALL" ]; then
|
||||
|
||||
# Kill the process if it is still running
|
||||
if [ -s ${PID_FILE} ]; then
|
||||
PID=`cat ${PID_FILE}`
|
||||
echo -n ">> Killing Jakarta Tomcat process (${PID})..."
|
||||
/bin/kill ${PID} > /dev/null 2> /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
echo " [ DONE ]"
|
||||
else
|
||||
echo " [ FAILED ]"
|
||||
fi
|
||||
echo -n ">> Removing PID file (${PID_FILE})..."
|
||||
rm ${PID_FILE} > /dev/null 2> /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
echo " [ DONE ]"
|
||||
else
|
||||
echo " [ FAILED ]"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$2" = "POST-DEINSTALL" ]; then
|
||||
# If the user exists, then display a message
|
||||
if pw usershow "${USER}" 2>/dev/null 1>&2; then
|
||||
echo "To delete the ${USER} user permanently, use 'pw userdel ${USER}'"
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
@ -1,46 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Checks if the 'www' user and group exist. If they don't, then
|
||||
# an attempt is made to create both.
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/www/tomcat41/files/Attic/pkg-install.in,v 1.1 2006-02-07 08:50:08 lawrance Exp $
|
||||
#
|
||||
|
||||
# Make sure we're called during the 'make install' process
|
||||
if [ "$2" != "PRE-INSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Set some constants
|
||||
UID=80
|
||||
GID=${UID}
|
||||
USER=%%USER%%
|
||||
GROUP=%%GROUP%%
|
||||
|
||||
# See if the group already exists
|
||||
if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then
|
||||
|
||||
# If not, try to create it
|
||||
if pw groupadd ${GROUP} -g ${GID}; then
|
||||
echo "Added group \"${GROUP}\"."
|
||||
else
|
||||
echo "Adding group \"${GROUP}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# See if the user already exists
|
||||
if ! pw usershow "${USER}" 2>/dev/null 1>&2; then
|
||||
|
||||
# If not, try to create it
|
||||
if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
|
||||
-s "/sbin/nologin" -d "/nonexistent" \
|
||||
-c "World Wide Web Owner"; \
|
||||
then
|
||||
echo "Added user \"${USER}\"."
|
||||
else
|
||||
echo "Adding user \"${USER}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
exit 0
|
@ -1,170 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: tomcat%%TOMCAT_VERSION%%
|
||||
# REQUIRE: NETWORKING SERVERS
|
||||
# BEFORE: DAEMON
|
||||
# KEYWORD: shutdown
|
||||
|
||||
#
|
||||
# Configuration settings for tomcat%%TOMCAT_VERSION%% in /etc/rc.conf:
|
||||
#
|
||||
# tomcat%%TOMCAT_VERSION%%_enable (bool):
|
||||
# Set to "NO" by default.
|
||||
# Set it to "YES" to enable tomcat%%TOMCAT_VERSION%%
|
||||
#
|
||||
# tomcat%%TOMCAT_VERSION%%_flags (str):
|
||||
# Set to "" by default.
|
||||
# Extra flags passed to start command
|
||||
#
|
||||
# tomcat%%TOMCAT_VERSION%%_catalina_home (str)
|
||||
# Set to "%%TOMCAT_HOME%%" by default.
|
||||
# Set the CATALINA_HOME variable for the Tomcat process
|
||||
#
|
||||
# tomcat%%TOMCAT_VERSION%%_catalina_base (str)
|
||||
# Set to "%%TOMCAT_HOME%%" by default.
|
||||
# Set the CATALINA_BASE variable for the Tomcat process
|
||||
#
|
||||
# tomcat%%TOMCAT_VERSION%%_catalina_tmpdir (str)
|
||||
# Set to "%%TOMCAT_HOME%%/temp" by default.
|
||||
# Set the CATALINA_TMPDIR variable for the Tomcat process
|
||||
#
|
||||
# tomcat%%TOMCAT_VERSION%%_stdout_log (str)
|
||||
# Set to "%%STDOUT_LOG%%" by default.
|
||||
# Set the location for the Tomcat process log (standard output)
|
||||
#
|
||||
# tomcat%%TOMCAT_VERSION%%_stderr_log (str)
|
||||
# Set to "%%STDERR_LOG%%" by default.
|
||||
# Set the location for the Tomcat process log (error output)
|
||||
#
|
||||
# tomcat%%TOMCAT_VERSION%%_stop_timeout (num)
|
||||
# Set to "10" by default.
|
||||
# Sets the timeout in seconds to allow tomcat to shutdown.
|
||||
# After the timeout has elapsed, tomcat will be killed.
|
||||
#
|
||||
# tomcat%%TOMCAT_VERSION%%_java_home (str):
|
||||
# tomcat%%TOMCAT_VERSION%%_java_vendor (str):
|
||||
# tomcat%%TOMCAT_VERSION%%_java_version (str):
|
||||
# tomcat%%TOMCAT_VERSION%%_java_os (str):
|
||||
# Specify the requirements of the Java VM to use. See javavm(1).
|
||||
#
|
||||
# tomcat%%TOMCAT_VERSION%%_classpath (str):
|
||||
# Set to "" by default.
|
||||
# Addtional classes to add to the CLASSPATH
|
||||
#
|
||||
# tomcat%%TOMCAT_VERSION%%_java_opts (str):
|
||||
# Set to "" by default.
|
||||
# Java VM args to use.
|
||||
#
|
||||
|
||||
tomcat%%TOMCAT_VERSION%%_enable="${tomcat%%TOMCAT_VERSION%%_enable:-"NO"}"
|
||||
tomcat%%TOMCAT_VERSION%%_java_version="${tomcat%%TOMCAT_VERSION%%_java_version:-"%%JAVA_VERSION%%"}"
|
||||
tomcat%%TOMCAT_VERSION%%_user="${tomcat%%TOMCAT_VERSION%%_user:-"%%USER%%"}"
|
||||
tomcat%%TOMCAT_VERSION%%_catalina_home="${tomcat%%TOMCAT_VERSION%%_catalina_home:-"%%TOMCAT_HOME%%"}"
|
||||
tomcat%%TOMCAT_VERSION%%_catalina_base="${tomcat%%TOMCAT_VERSION%%_catalina_base:-"%%TOMCAT_HOME%%"}"
|
||||
tomcat%%TOMCAT_VERSION%%_catalina_tmpdir="${tomcat%%TOMCAT_VERSION%%_catalina_tmpdir:-"%%TOMCAT_HOME%%/temp"}"
|
||||
tomcat%%TOMCAT_VERSION%%_stdout_log="${tomcat%%TOMCAT_VERSION%%_stdout_log:-"%%STDOUT_LOG%%"}"
|
||||
tomcat%%TOMCAT_VERSION%%_stderr_log="${tomcat%%TOMCAT_VERSION%%_stderr_log:-"%%STDERR_LOG%%"}"
|
||||
tomcat%%TOMCAT_VERSION%%_stop_timeout="${tomcat%%TOMCAT_VERSION%%_stop_timeout:-"10"}"
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="tomcat%%TOMCAT_VERSION%%"
|
||||
rcvar=`set_rcvar`
|
||||
pidfile="%%PID_FILE%%"
|
||||
|
||||
load_rc_config "${name}"
|
||||
|
||||
if [ -n "${tomcat%%TOMCAT_VERSION%%_java_home}" ] ; then
|
||||
export JAVA_HOME="${tomcat%%TOMCAT_VERSION%%_java_home}"
|
||||
fi
|
||||
|
||||
if [ -n "${tomcat%%TOMCAT_VERSION%%_java_version}" ] ; then
|
||||
export JAVA_VERSION="${tomcat%%TOMCAT_VERSION%%_java_version}"
|
||||
fi
|
||||
|
||||
if [ -n "${tomcat%%TOMCAT_VERSION%%_java_vendor}" ] ; then
|
||||
export JAVA_VENDOR="${tomcat%%TOMCAT_VERSION%%_java_vendor}"
|
||||
fi
|
||||
|
||||
if [ -n "${tomcat%%TOMCAT_VERSION%%_java_os}" ] ; then
|
||||
export JAVA_OS="${tomcat%%TOMCAT_VERSION%%_java_os}"
|
||||
fi
|
||||
|
||||
java_command="%%LOCALBASE%%/bin/java \
|
||||
${tomcat%%TOMCAT_VERSION%%_java_opts} \
|
||||
-Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS \
|
||||
-classpath %%TOMCAT_HOME%%/%%JAR_FILE%%:%%TOMCAT_HOME%%/bin/commons-logging-api.jar:${tomcat%%TOMCAT_VERSION%%_classpath} \
|
||||
-Dcatalina.base=${tomcat%%TOMCAT_VERSION%%_catalina_base} \
|
||||
-Dcatalina.home=${tomcat%%TOMCAT_VERSION%%_catalina_home} \
|
||||
-Djava.io.tmpdir=${tomcat%%TOMCAT_VERSION%%_catalina_tmpdir} \
|
||||
org.apache.catalina.startup.Bootstrap"
|
||||
|
||||
log_args=">> ${tomcat%%TOMCAT_VERSION%%_stdout_log} \
|
||||
2>> ${tomcat%%TOMCAT_VERSION%%_stderr_log} "
|
||||
|
||||
# Subvert the check_pid_file procname check.
|
||||
if [ -f $pidfile ]; then
|
||||
read rc_pid junk < $pidfile
|
||||
if [ ! -z "$rc_pid" ]; then
|
||||
procname=`ps -o ucomm= $rc_pid`
|
||||
fi
|
||||
fi
|
||||
if [ -z "$procname" ]; then
|
||||
procname=nonexistent
|
||||
fi
|
||||
|
||||
required_files="${tomcat%%TOMCAT_VERSION%%_catalina_home}/conf/server.xml"
|
||||
|
||||
command="/usr/sbin/daemon"
|
||||
flags="-p ${pidfile} ${java_command} start ${tomcat%%TOMCAT_VERSION%%_flags} ${log_args}"
|
||||
|
||||
start_precmd=pid_touch
|
||||
stop_cmd="tomcat%%TOMCAT_VERSION%%_stop"
|
||||
|
||||
pid_touch ()
|
||||
{
|
||||
touch $pidfile
|
||||
chown $tomcat%%TOMCAT_VERSION%%_user $pidfile
|
||||
}
|
||||
|
||||
tomcat%%TOMCAT_VERSION%%_stop() {
|
||||
rc_pid=$(check_pidfile $pidfile $procname)
|
||||
|
||||
if [ -z "$rc_pid" ]; then
|
||||
[ -n "$rc_fast" ] && return 0
|
||||
if [ -n "$pidfile" ]; then
|
||||
echo "${name} not running? (check $pidfile)."
|
||||
else
|
||||
echo "${name} not running?"
|
||||
fi
|
||||
return 1
|
||||
fi
|
||||
|
||||
echo "Stopping ${name}."
|
||||
${java_command} stop
|
||||
tomcat_wait_max_for_pid ${tomcat%%TOMCAT_VERSION%%_stop_timeout} ${rc_pid}
|
||||
kill -KILL ${rc_pid} 2> /dev/null && echo "Killed."
|
||||
echo -n > ${pidfile}
|
||||
}
|
||||
|
||||
tomcat_wait_max_for_pid() {
|
||||
_timeout=$1
|
||||
shift
|
||||
_pid=$1
|
||||
_prefix=
|
||||
while [ $_timeout -gt 0 ] ; do
|
||||
echo -n ${_prefix:-"Waiting (max $_timeout secs) for PIDS: "}$_pid
|
||||
_prefix=", "
|
||||
sleep 2
|
||||
kill -0 $_pid 2> /dev/null || break
|
||||
_timeout=$(($_timeout-2))
|
||||
done
|
||||
if [ -n "$_prefix" ]; then
|
||||
echo "."
|
||||
fi
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
@ -1,19 +0,0 @@
|
||||
Apache Tomcat is a web server written in 100% Pure Java. The
|
||||
Tomcat 4 branch is the reference implementation for the Java
|
||||
Servlet 2.3 and JavaServer Pages 1.2 technologies.
|
||||
|
||||
Tomcat 4.1 is a refactoring of Tomcat 4.0.x, and contains significant
|
||||
enhancements, including:
|
||||
|
||||
o JMX based administration features
|
||||
o JSP and Struts based administration web application
|
||||
o New Coyote connector (HTTP/1.1, AJP 1.3 and JNI support)
|
||||
o Rewritten Jasper JSP page compiler
|
||||
o Performance and memory efficiency improvements
|
||||
o Enhanced manager application support for integration with development
|
||||
tools
|
||||
o Custom Ant tasks to interact with the manager application directly from
|
||||
build.xml scripts
|
||||
|
||||
|
||||
WWW: http://tomcat.apache.org/
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user