diff options
| author | Sam Lawrance <lawrance@FreeBSD.org> | 2006-02-07 08:50:09 +0000 |
|---|---|---|
| committer | Sam Lawrance <lawrance@FreeBSD.org> | 2006-02-07 08:50:09 +0000 |
| commit | a0156c5c5b88d822b11a148b403f4fd7731bb18c (patch) | |
| tree | a65ce0fbae6876e3f9e17cb985c51db86a065624 /www/tomcat6/files/tomcat.sh.in | |
| parent | Update changed master site and homepage URLs. (diff) | |
Clean up Tomcat 4, 4.1, 5, and 5.5 ports.
These changes apply to all ports, unless mentioned otherwise:
- Move jakarta-tomcat55 to tomcat55 (it is no longer a Jakarta project). [6]
- Improve the tomcat55 rc script. Fix PID handling. Improve the
shutdown process. Use USE_RC_SUBR to its full potential. [2]
- Backport tomcat55 rc script to the other tomcat ports. This allows
us to pass command line arguments to the JVM. Noted in UPDATING.
[1], [3], [4]
- Change ownership of installed files. All files are now installed
with default uid/gid (root:wheel) except for those in the conf/, logs/,
temp/ and work/ directories. [5]
- No longer install tomcatXXctl binary. rc scripts are more flexible
and can be reconfigured without recompiling.
- Remove AUTO_START and STOP_TIMEOUT (replaced with rc tomcatXX_stop_timeout).
- Remove a long list of sed expressions in favour of SUB_LIST.
- Move pkg_{,de}install to files/pkg_{,de}install.in. Add them to
SUB_FILES. Tidy up substitutions and remove hardcoded values.
- Some nonfunctional tidying and removal of Makefile cruft.
PR: ports/38018 [1], ports/38020 [2], ports/74344 [3],
ports/75143 [4], ports/83434 [5], ports/92692 [6]
Submitted by: Ari Suutari <ari.suutari@syncrontech.com> [1] [2],
SimpleRezo Team <freebsd@simplerezo.com> [3],
Anton Yudin <toha@toha.org.ua> [4],
Jan Grant <jan.grant@bristol.ac.uk> [5],
lawrance [6]
Approved by: Kang Liu <liukang@cn.freebsd.org> (maintainer) [6]
Maintainer timeouts on [1], [2], [3], [4], [5]
Big thanks to: hq for the initial tomcat55 script
jasonb on FreeNode #tomcat for packaging advice
Diffstat (limited to 'www/tomcat6/files/tomcat.sh.in')
| -rw-r--r-- | www/tomcat6/files/tomcat.sh.in | 115 |
1 files changed, 0 insertions, 115 deletions
diff --git a/www/tomcat6/files/tomcat.sh.in b/www/tomcat6/files/tomcat.sh.in deleted file mode 100644 index 0dca0cb4afbf..000000000000 --- a/www/tomcat6/files/tomcat.sh.in +++ /dev/null @@ -1,115 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: jakarta-tomcat%%TOMCAT_VERSION%% -# REQUIRE: NETWORKING SERVERS -# BEFORE: DAEMON -# KEYWORD: FreeBSD shutdown - -# -# Configuration settings for jakarta-tomcat%%TOMCAT_VERSION%% in /etc/rc.conf: -# -# jakarta_tomcat%%TOMCAT_VERSION%%_enable (bool): -# Set to "NO" by default. -# Set it to "YES" to enable jakarta-tomcat%%TOMCAT_VERSION%% -# -# jakarta_tomcat%%TOMCAT_VERSION%%_flags (str): -# Set to "" by default. -# Extra flags passed to start command -# -# jakarta_tomcat%%TOMCAT_VERSION%%_catalina_home (str) -# Set to "%%TOMCAT_HOME%%" by default. -# Set the CATALINA_HOME variable for the Tomcat process -# -# jakarta_tomcat%%TOMCAT_VERSION%%_catalina_base (str) -# Set to "%%TOMCAT_HOME%%" by default. -# Set the CATALINA_BASE variable for the Tomcat process -# -# jakarta_tomcat%%TOMCAT_VERSION%%_catalina_tmpdir (str) -# Set to "%%TOMCAT_HOME%%/temp" by default. -# Set the CATALINA_TMPDIR variable for the Tomcat process -# -# jakarta_tomcat%%TOMCAT_VERSION%%_stdout_log (str) -# Set to "%%STDOUT_LOG%%" by default. -# Set the location for the Tomcat process log (standard output) -# -# jakarta_tomcat%%TOMCAT_VERSION%%_stderr_log (str) -# Set to "%%STDERR_LOG%%" by default. -# Set the location for the Tomcat process log (error output) -# -# jakarta_tomcat%%TOMCAT_VERSION%%_java_home (str): -# jakarta_tomcat%%TOMCAT_VERSION%%_java_vendor (str): -# jakarta_tomcat%%TOMCAT_VERSION%%_java_version (str): -# jakarta_tomcat%%TOMCAT_VERSION%%_java_os (str): -# Specify the requirements of the Java VM to use. See javavm(1). -# -# jakarta_tomcat%%TOMCAT_VERSION%%_classpath (str): -# Set to "" by default. -# Addtional classes to add to the CLASSPATH -# -# jakarta_tomcat%%TOMCAT_VERSION%%_java_opts (str): -# Set to "" by default. -# Java VM args to use. -# - -jakarta_tomcat%%TOMCAT_VERSION%%_enable="${jakarta_tomcat%%TOMCAT_VERSION%%_enable:-"NO"}" -jakarta_tomcat%%TOMCAT_VERSION%%_java_version="${jakarta_tomcat%%TOMCAT_VERSION%%_java_version:-"%%JAVA_VERSION%%"}" -jakarta_tomcat%%TOMCAT_VERSION%%_user="${jakarta_tomcat%%TOMCAT_VERSION%%_user:-"%%USER%%"}" -jakarta_tomcat%%TOMCAT_VERSION%%_catalina_home="${jakarta_tomcat%%TOMCAT_VERSION%%_catalina_home:-"%%TOMCAT_HOME%%"}" -jakarta_tomcat%%TOMCAT_VERSION%%_catalina_base="${jakarta_tomcat%%TOMCAT_VERSION%%_catalina_base:-"%%TOMCAT_HOME%%"}" -jakarta_tomcat%%TOMCAT_VERSION%%_catalina_tmpdir="${jakarta_tomcat%%TOMCAT_VERSION%%_catalina_tmpdir:-"%%TOMCAT_HOME%%/temp"}" -jakarta_tomcat%%TOMCAT_VERSION%%_stdout_log="${jakarta_tomcat%%TOMCAT_VERSION%%_stdout_log:-"%%STDOUT_LOG%%"}" -jakarta_tomcat%%TOMCAT_VERSION%%_stderr_log="${jakarta_tomcat%%TOMCAT_VERSION%%_stderr_log:-"%%STDERR_LOG%%"}" - -. %%RC_SUBR%% - -name="jakarta_tomcat%%TOMCAT_VERSION%%" -rcvar=`set_rcvar` - -load_rc_config "${name}" - -if [ -n "${jakarta_tomcat%%TOMCAT_VERSION%%_java_home}" ] ; then - export JAVA_HOME="${jakarta_tomcat%%TOMCAT_VERSION%%_java_home}" -fi - -if [ -n "${jakarta_tomcat%%TOMCAT_VERSION%%_java_version}" ] ; then - export JAVA_VERSION="${jakarta_tomcat%%TOMCAT_VERSION%%_java_version}" -fi - -if [ -n "${jakarta_tomcat%%TOMCAT_VERSION%%_java_vendor}" ] ; then - export JAVA_VENDOR="${jakarta_tomcat%%TOMCAT_VERSION%%_java_vendor}" -fi - -if [ -n "${jakarta_tomcat%%TOMCAT_VERSION%%_java_os}" ] ; then - export JAVA_OS="${jakarta_tomcat%%TOMCAT_VERSION%%_java_os}" -fi - -java_command="%%LOCALBASE%%/bin/java \ - ${jakarta_tomcat%%TOMCAT_VERSION%%_java_opts} \ - -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS \ - -classpath %%TOMCAT_HOME%%/bin/bootstrap.jar:%%TOMCAT_HOME%%/bin/commons-logging-api.jar:${jakarta_tomcat%%TOMCAT_VERSION%%_classpath} \ - -Dcatalina.base=${jakarta_tomcat%%TOMCAT_VERSION%%_catalina_base} \ - -Dcatalina.home=${jakarta_tomcat%%TOMCAT_VERSION%%_catalina_home} \ - -Djava.io.tmpdir=${jakarta_tomcat%%TOMCAT_VERSION%%_catalina_tmpdir} \ - org.apache.catalina.startup.Bootstrap" - -log_args=">> ${jakarta_tomcat%%TOMCAT_VERSION%%_stdout_log} \ - 2>> ${jakarta_tomcat%%TOMCAT_VERSION%%_stderr_log} " - -procname="java" -required_files="${jakarta_tomcat%%TOMCAT_VERSION%%_catalina_home}/conf/server.xml" - -command="/usr/sbin/daemon" -flags="${command} ${java_command} start ${jakarta_tomcat%%TOMCAT_VERSION%%_flags} ${log_args}" - -stop_cmd="jakarta_tomcat%%TOMCAT_VERSION%%_stop" - -jakarta_tomcat%%TOMCAT_VERSION%%_stop() { - echo "Stopping ${name}." - ${java_command} stop - wait_for_pids -} - -run_rc_command "$1" |
