Index: tomcat6/files/tomcat6.sh.in =================================================================== RCS file: /home/pcvs/ports/www/tomcat6/files/tomcat6.sh.in,v retrieving revision 1.1 diff -u -r1.1 tomcat6.sh.in --- tomcat6/files/tomcat6.sh.in 18 Feb 2007 12:56:16 -0000 1.1 +++ tomcat6/files/tomcat6.sh.in 29 Sep 2007 05:39:25 -0000 @@ -112,6 +112,9 @@ procname=`ps -o ucomm= $rc_pid` fi fi +if [ -z "$procname" ]; then + procname=nonexistent +fi required_files="${tomcat%%TOMCAT_VERSION%%_catalina_home}/conf/server.xml" @@ -128,7 +131,7 @@ } 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