svn commit: r440281 - head/www/tomcat6/files

Larry Rosenman ler at FreeBSD.org
Sat May 6 16:38:39 UTC 2017


Author: ler
Date: Sat May  6 16:38:37 2017
New Revision: 440281
URL: https://svnweb.freebsd.org/changeset/ports/440281

Log:
  www/tomcat6: rc-script status/stop fail if pid has less than 5 digit
  
  PR:		209454
  Submitted by:	wolfgang at lyxys.ka.sub.org
  Approved by:	adamw (mentor, implicit)

Modified:
  head/www/tomcat6/files/tomcat6.in

Modified: head/www/tomcat6/files/tomcat6.in
==============================================================================
--- head/www/tomcat6/files/tomcat6.in	Sat May  6 15:54:54 2017	(r440280)
+++ head/www/tomcat6/files/tomcat6.in	Sat May  6 16:38:37 2017	(r440281)
@@ -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
 }


More information about the svn-ports-all mailing list