source: nutchez-0.2/src/shell/tomcat_restart.sh @ 248

Last change on this file since 248 was 248, checked in by rock, 14 years ago

Add: shell/tomcat_restart.sh

  • Property svn:executable set to *
File size: 241 bytes
Line 
1tom_pids=$(ps x | grep -v 'grep' | grep "tomcat" | awk '{print $1}'
2Tomcat_HOME="/opt/nutchez/tomcat"
3
4for tom_pid in $tom_pids
5    do 
6        kill -9 $tom_pid 2>/dev/null
7    done
8
9$Tomcat_HOME/bin/startup.sh
10$Tomcat_HOME/bin/shutdown.sh
Note: See TracBrowser for help on using the repository browser.