You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/08/16 23:40:18 UTC

[Bug 55439] New: 'catalina.sh stop -force' doesn't account for empty pid file

https://issues.apache.org/bugzilla/show_bug.cgi?id=55439

            Bug ID: 55439
           Summary: 'catalina.sh stop -force' doesn't account for empty
                    pid file
           Product: Tomcat 8
           Version: trunk
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Packaging
          Assignee: dev@tomcat.apache.org
          Reporter: daveminor@gmail.com

When CATALINA_PID is provided to 'catalina.sh stop -force', but the script
doesn't have permission to remove the file, the script instead clears the
CATALINA_PID file's contents. The subsequent code for '-force' doesn't account
for this and attempts to call kill an empty PID argument, leading to spurious
error messages.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 55439] 'catalina.sh stop -force' doesn't account for empty pid file

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55439

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for the report. This has been fixed in trunk and will be included in
8.0.0-RC2 onwards and has also been fixed in 7.0.x for 7.0.43 onwards.

I also took the opportunity to fix a related issue if a forced stop is required
and the pid file can only be cleared rather than removed.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org