aboutsummaryrefslogtreecommitdiff
path: root/www/tomcat41
diff options
context:
space:
mode:
authorSam Lawrance <lawrance@FreeBSD.org>2006-02-07 13:41:00 +0000
committerSam Lawrance <lawrance@FreeBSD.org>2006-02-07 13:41:00 +0000
commit314fa7a3d9e6a99b19be00339e9bcb109703d857 (patch)
treed6d78f2e42c0ad615e545c88c4b7c9e18855723a /www/tomcat41
parenta20733af4435f458f88ac9305185e098232882e0 (diff)
downloadports-314fa7a3d9e6a99b19be00339e9bcb109703d857.tar.gz
ports-314fa7a3d9e6a99b19be00339e9bcb109703d857.zip
Since the procname of tomcat processes may vary due to javavmwrapper,
subvert the 'check_pid_file' procname check by setting it from the output of 'ps'. Remove the previous attempt at handling this problem, which was to put a wildcard in procname. I'll wear my pointy hat for that bogus hack. Reported by: Fritz Heinrichmeyer <Fritz.Heinrichmeyer@FernUni-Hagen.de>
Notes
Notes: svn path=/head/; revision=155418
Diffstat (limited to 'www/tomcat41')
-rw-r--r--www/tomcat41/Makefile2
-rw-r--r--www/tomcat41/files/tomcat41.sh.in9
2 files changed, 9 insertions, 2 deletions
diff --git a/www/tomcat41/Makefile b/www/tomcat41/Makefile
index db7b44a561c5..c099ddd51f16 100644
--- a/www/tomcat41/Makefile
+++ b/www/tomcat41/Makefile
@@ -7,7 +7,7 @@
PORTNAME= jakarta-tomcat
PORTVERSION= 4.1.31
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= www java
MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
MASTER_SITE_SUBDIR= tomcat-4/v${PORTVERSION}/bin
diff --git a/www/tomcat41/files/tomcat41.sh.in b/www/tomcat41/files/tomcat41.sh.in
index dac2e79731df..105bcae155c7 100644
--- a/www/tomcat41/files/tomcat41.sh.in
+++ b/www/tomcat41/files/tomcat41.sh.in
@@ -105,7 +105,14 @@ java_command="%%LOCALBASE%%/bin/java \
log_args=">> ${tomcat%%TOMCAT_VERSION%%_stdout_log} \
2>> ${tomcat%%TOMCAT_VERSION%%_stderr_log} "
-procname="*java"
+# Subvert the check_pid_file procname check.
+if [ -f $pidfile ]; then
+ read rc_pid junk < $pidfile
+ if [ ! -z "$rc_pid" ]; then
+ procname=`ps -o command= $rc_pid | cut -d ' ' -f 1`
+ fi
+fi
+
required_files="${tomcat%%TOMCAT_VERSION%%_catalina_home}/conf/server.xml"
command="/usr/sbin/daemon"