aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2011-07-06 21:31:56 +0800
committerale <ale@FreeBSD.org>2011-07-06 21:31:56 +0800
commit32205ca30689e9a02b86e033c58d04c0a49753d9 (patch)
treea63cc9fa0e1cdae6b6118ebc0614cafd650bfba8 /www
parent06e577fdd3dbe24c43bfab90f1248462cc15d3bd (diff)
downloadfreebsd-ports-gnome-32205ca30689e9a02b86e033c58d04c0a49753d9.tar.gz
freebsd-ports-gnome-32205ca30689e9a02b86e033c58d04c0a49753d9.tar.zst
freebsd-ports-gnome-32205ca30689e9a02b86e033c58d04c0a49753d9.zip
Add the ability to specify a different logger.
The tomcat7_stdout/stderr_log parameters have been replaced by tomcat7_catalina_log Use catalina.out as default log file and bump PORTREVISION. PR: ports/158350 Submitted by: Jason Helfman <jhelfman@experts-exchange.com>
Diffstat (limited to 'www')
-rw-r--r--www/tomcat7/Makefile1
-rw-r--r--www/tomcat7/files/tomcat7.in18
2 files changed, 6 insertions, 13 deletions
diff --git a/www/tomcat7/Makefile b/www/tomcat7/Makefile
index 4d2f4e787d1e..20340935389c 100644
--- a/www/tomcat7/Makefile
+++ b/www/tomcat7/Makefile
@@ -7,6 +7,7 @@
PORTNAME= tomcat
PORTVERSION= 7.0.16
+PORTREVISION= 1
CATEGORIES= www java
MASTER_SITES= ${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR= tomcat/tomcat-7/v${PORTVERSION}/bin
diff --git a/www/tomcat7/files/tomcat7.in b/www/tomcat7/files/tomcat7.in
index 3faa9468bc85..3f5b4ad75424 100644
--- a/www/tomcat7/files/tomcat7.in
+++ b/www/tomcat7/files/tomcat7.in
@@ -27,13 +27,9 @@
# Set to "%%TOMCAT_HOME%%/temp" by default.
# Set the CATALINA_TMPDIR variable for the Tomcat process
#
-# tomcat7_stdout_log (str)
-# Set to "%%TOMCAT_HOME%%/logs/stdout.txt" by default.
-# Set the location for the Tomcat process log (standard output)
-#
-# tomcat7_stderr_log (str)
-# Set to "%%TOMCAT_HOME%%/logs/stderr.txt" by default.
-# Set the location for the Tomcat process log (error output)
+# tomcat7_catalina_log (str)
+# Set to ">> %%TOMCAT_HOME%%/logs/catalina.out 2>&1" by default.
+# Set the Tomcat Console logger
#
# tomcat7_stop_timeout (num)
# Set to "10" by default.
@@ -61,8 +57,7 @@ tomcat7_user="${tomcat7_user:-"%%TOMCAT_USER%%"}"
tomcat7_catalina_home="%%TOMCAT_HOME%%"
tomcat7_catalina_base="${tomcat7_catalina_base:-"%%TOMCAT_HOME%%"}"
tomcat7_catalina_tmpdir="${tomcat7_catalina_tmpdir:-"%%TOMCAT_HOME%%/temp"}"
-tomcat7_stdout_log="${tomcat7_stdout_log:-"%%TOMCAT_HOME%%/logs/stdout.txt"}"
-tomcat7_stderr_log="${tomcat7_stderr_log:-"%%TOMCAT_HOME%%/logs/stderr.txt"}"
+tomcat7_catalina_log="${tomcat7_catalina_log:-">> %%TOMCAT_HOME%%/logs/catalina.out 2>&1"}"
tomcat7_stop_timeout="${tomcat7_stop_timeout:-"10"}"
. /etc/rc.subr
@@ -99,13 +94,10 @@ java_command="%%LOCALBASE%%/bin/java \
-Djava.io.tmpdir=${tomcat7_catalina_tmpdir} \
${java_class}"
-log_args=">> ${tomcat7_stdout_log} \
- 2>> ${tomcat7_stderr_log} "
-
required_files="${tomcat7_catalina_base}/conf/server.xml"
command="/usr/sbin/daemon"
-flags="-p ${pidfile} ${java_command} start ${tomcat7_flags} ${log_args}"
+flags="-p ${pidfile} ${java_command} start ${tomcat7_flags} ${tomcat7_catalina_log}"
start_precmd="pid_touch"
stop_cmd="tomcat_stop"