Changes between Initial Version and Version 1 of waue/2009/0706
- Timestamp:
- Jul 6, 2009, 4:46:08 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
waue/2009/0706
v1 v1 1 {{{ 2 pid=$(ps axw -eo pid,command | grep "org.apache.catalina.startup.Bootstrap" | grep "start" | awk '{print $1}') 3 if [ -z "$pid" ]; then 4 echo "tomcat is not running" 5 else 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 13 fi 14 }}}