diff options
author | Sam Lawrance <lawrance@FreeBSD.org> | 2006-02-07 13:41:00 +0000 |
---|---|---|
committer | Sam Lawrance <lawrance@FreeBSD.org> | 2006-02-07 13:41:00 +0000 |
commit | 314fa7a3d9e6a99b19be00339e9bcb109703d857 (patch) | |
tree | d6d78f2e42c0ad615e545c88c4b7c9e18855723a /www/jakarta-tomcat4 | |
parent | a20733af4435f458f88ac9305185e098232882e0 (diff) | |
download | ports-314fa7a3d9e6a99b19be00339e9bcb109703d857.tar.gz ports-314fa7a3d9e6a99b19be00339e9bcb109703d857.zip |
Notes
Diffstat (limited to 'www/jakarta-tomcat4')
-rw-r--r-- | www/jakarta-tomcat4/Makefile | 2 | ||||
-rw-r--r-- | www/jakarta-tomcat4/files/tomcat4.sh.in | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/www/jakarta-tomcat4/Makefile b/www/jakarta-tomcat4/Makefile index 51a75f801937..61872bf11189 100644 --- a/www/jakarta-tomcat4/Makefile +++ b/www/jakarta-tomcat4/Makefile @@ -7,7 +7,7 @@ PORTNAME= jakarta-tomcat PORTVERSION= 4.0.6 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www java MASTER_SITES= http://distfiles.coredump.cn/ \ ftp://local-distfiles.freebsd.org.cn/pub/china-ports/liukang/ diff --git a/www/jakarta-tomcat4/files/tomcat4.sh.in b/www/jakarta-tomcat4/files/tomcat4.sh.in index dac2e79731df..105bcae155c7 100644 --- a/www/jakarta-tomcat4/files/tomcat4.sh.in +++ b/www/jakarta-tomcat4/files/tomcat4.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" |