summaryrefslogtreecommitdiffstats
path: root/www/tomcat55/files
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2006-09-08 09:31:07 +0000
committerpav <pav@FreeBSD.org>2006-09-08 09:31:07 +0000
commitb8d4b593e9378d131c47f01cd3a514caa56f7b74 (patch)
tree9441e17343d22f440850b7c0df04a2584e49dc49 /www/tomcat55/files
parent778f47d9418a7a8ed2b4a979f3dcce94b0a06bf0 (diff)
downloadFreeBSD-ports-b8d4b593e9378d131c47f01cd3a514caa56f7b74.zip
FreeBSD-ports-b8d4b593e9378d131c47f01cd3a514caa56f7b74.tar.gz
- 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.
Diffstat (limited to 'www/tomcat55/files')
-rw-r--r--www/tomcat55/files/tomcat55.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/tomcat55/files/tomcat55.sh.in b/www/tomcat55/files/tomcat55.sh.in
index 2823c81..bc87ede 100644
--- a/www/tomcat55/files/tomcat55.sh.in
+++ b/www/tomcat55/files/tomcat55.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
OpenPOWER on IntegriCloud