Bug 55986

Summary: catalina.sh -force may falsely report "Tomcat has not been killed completely yet"
Product: Tomcat 7 Reporter: jess
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: trunk   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Attachments: catalina.sh patch

Description jess 2014-01-11 11:51:50 UTC
Created attachment 31197 [details]
catalina.sh patch

When catalina.sh -force is called and rm -f "$CATALINA_PID" succeeds, KILL_SLEEP_INTERVAL is not set to zero and the warning "Tomcat has not been killed completely yet" is falsely reported.

This may be fixed by moving the KILL_SLEEP_INTERVAL=0 statement out below the "rm -f "$CATALINA_PID" error handling block. See attached patch.
Comment 1 Mark Thomas 2014-01-13 15:43:54 UTC
Thanks for the report and the patch.

I have applied the patch (with some additional tweaks) to 8.0.x for 8.0.0 onwards and to 7.0.x for 7.0.51 onwards.

Your contribution has been recognized in both the commit log and the changelog.

Thanks again.