diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2006-09-08 09:31:07 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2006-09-08 09:31:07 +0000 |
commit | 898335a4e5856ca51d99414766fea6fc70611b1f (patch) | |
tree | 44751b05f3f3345c2bf871011503f463cff3660e /www/jakarta-tomcat4 | |
parent | ac9edfd67969ce040c55ee2bf49944febd284c56 (diff) |
- Work around an inability of rc.subr's _find_processes() to work with
processes that show as [java] on ps output. This should fix the rc script
stop action for all folks.
Notes
Notes:
svn path=/head/; revision=172557
Diffstat (limited to 'www/jakarta-tomcat4')
-rw-r--r-- | www/jakarta-tomcat4/Makefile | 2 | ||||
-rw-r--r-- | www/jakarta-tomcat4/files/tomcat4.sh.in | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/www/jakarta-tomcat4/Makefile b/www/jakarta-tomcat4/Makefile index 2bba62440534..a6920741b5f0 100644 --- a/www/jakarta-tomcat4/Makefile +++ b/www/jakarta-tomcat4/Makefile @@ -7,7 +7,7 @@ PORTNAME= jakarta-tomcat PORTVERSION= 4.0.6 -PORTREVISION= 4 +PORTREVISION= 5 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 2823c81ca7d1..bc87ede6d9d4 100644 --- a/www/jakarta-tomcat4/files/tomcat4.sh.in +++ b/www/jakarta-tomcat4/files/tomcat4.sh.in @@ -109,7 +109,7 @@ log_args=">> ${tomcat%%TOMCAT_VERSION%%_stdout_log} \ if [ -f $pidfile ]; then read rc_pid junk < $pidfile if [ ! -z "$rc_pid" ]; then - procname=`ps -o comm= $rc_pid` + procname=`ps -o ucomm= $rc_pid` fi fi @@ -128,7 +128,7 @@ pid_touch () } tomcat%%TOMCAT_VERSION%%_stop() { - rc_pid=$(check_pidfile $pidfile $procname) + rc_pid=$(check_pidfile $pidfile *$procname*) if [ -z "$rc_pid" ]; then [ -n "$rc_fast" ] && return 0 |