summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry Rosenman <ler@FreeBSD.org>2017-05-06 16:38:37 +0000
committerLarry Rosenman <ler@FreeBSD.org>2017-05-06 16:38:37 +0000
commite5311c4d429795dbcf93340510a97439f2688324 (patch)
tree74ad33f1a7f337d7108c329fb7e6ce0f94d06ded
parentUpdate to 2.0.0 (diff)
www/tomcat6: rc-script status/stop fail if pid has less than 5 digit
PR: 209454 Submitted by: wolfgang@lyxys.ka.sub.org Approved by: adamw (mentor, implicit)
-rw-r--r--www/tomcat6/files/tomcat6.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/tomcat6/files/tomcat6.in b/www/tomcat6/files/tomcat6.in
index 5183ef2cd5af..67f1db014e1f 100644
--- a/www/tomcat6/files/tomcat6.in
+++ b/www/tomcat6/files/tomcat6.in
@@ -168,7 +168,7 @@ tomcat_check_pidfile() {
debug "pid file ($_pidfile): no pid in file."
return
fi
- if [ -n "`/usr/bin/procstat -c $_pid | grep -e "^$_pid.*$java_class"`" ]; then
+ if [ -n "`/usr/bin/procstat -c $_pid | grep -e "^ *$_pid.*$java_class"`" ]; then
echo -n $_pid
fi
}