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 2005/05/30 16:51:24 UTC

DO NOT REPLY [Bug 35124] New: - catalina stop problem, uses kill approach

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35124

           Summary: catalina stop problem, uses kill approach
           Product: Tomcat 5
           Version: 5.0.1
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: pankajmandaliya@elitecore.com
                CC: pankajmandaliya@elitecore.com


catalina.sh script uses 'kill' approach for stopping catalina. For killing it 
finds tomcat pid using 
tomcat_process=`netstat -anp | grep 8009 | awk '{print $NF}' | cut -d"/" -f1`
kill -9 $tomcat_process
problem with this approach is that when any connection is in timewait state, 
then the kill command will become 'kill -9 -' which actually kills the current 
shell as well.
Other thing is that it uses 8009 port for finding pid of tomcat. Now this port 
is subject to change by the user. So it might create problem.
Kill approach causes other commands not to be executed, after catalina.sh stop.
We uses in httpd service, so it creates problem in starting httpd service from 
midway.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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