Created attachment 170212 [details] patch the rc-script template to ignore whitespace in front of pid output The tomcat_check_pidfile subroutine in /usr/local/etc/rc.d/tomcat6 fails to find a running tomcat process if the procstat output begins with whitespace in front of the pid, resulting in "status" not seeing the process and "stop" failing to stop it. The attached patch fixes the problem for me.
Created attachment 170213 [details] fixed version of patch sorry, typo in first attached patch file, this one is now correct
Same for me (confirmed) - just tested.
Committed thanks
A commit references this bug: Author: ler Date: Sat May 6 16:38:37 UTC 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@lyxys.ka.sub.org Approved by: adamw (mentor, implicit) Changes: head/www/tomcat6/files/tomcat6.in