Changes between Initial Version and Version 1 of waue/2009/0706


Ignore:
Timestamp:
Jul 6, 2009, 4:46:08 PM (15 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • waue/2009/0706

    v1 v1  
     1{{{
     2pid=$(ps axw -eo pid,command | grep "org.apache.catalina.startup.Bootstrap" | grep "start" | awk '{print $1}')
     3if [ -z "$pid" ]; then
     4    echo "tomcat is not running"
     5else
     6    echo "tomcat is detected and the pid is $pid"
     7    kill -9 $pid
     8    if [ -z $? ];then
     9        echo " tomcat ($pid) is  killed ..."
     10    else
     11        echo "kill error ..."
     12    fi
     13fi
     14}}}