[Bug 209454] www/tomcat6: rc-script status/stop fail if pid has less than 5 digits

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 11 13:42:16 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209454

            Bug ID: 209454
           Summary: www/tomcat6: rc-script status/stop fail if pid has
                    less than 5 digits
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ale at FreeBSD.org
          Reporter: wolfgang at lyxys.ka.sub.org
             Flags: maintainer-feedback?(ale at FreeBSD.org)
          Assignee: ale at FreeBSD.org

Created attachment 170212
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=170212&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list