--- /usr/ports/www/tomcat6/files/tomcat6.sh.in 2007-10-01 11:04:02.000000000 +1300 +++ ./files/tomcat6.sh.in 2008-12-04 15:44:49.000000000 +1300 @@ -109,7 +109,7 @@ if [ -f $pidfile ]; then read rc_pid junk < $pidfile if [ ! -z "$rc_pid" ]; then - procname=`ps -o ucomm= $rc_pid` + procname=`ps -o command= $rc_pid | cut -f1 -d' '` fi fi if [ -z "$procname" ]; then