Bug 55439

Summary: 'catalina.sh stop -force' doesn't account for empty pid file
Product: Tomcat 8 Reporter: David Minor <daveminor>
Component: PackagingAssignee: Tomcat Developers Mailing List <dev>
Severity: minor    
Priority: P2    
Version: 8.0.x-trunk   
Target Milestone: ----   
Hardware: All   
OS: Linux   

Description David Minor 2013-08-16 21:40:18 UTC
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.
Comment 1 Mark Thomas 2013-08-20 19:12:51 UTC
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.