source:
nutchez-0.2/src/shell/tomcat_restart.sh
@
261
| Last change on this file since 261 was 248, checked in by rock, 15 years ago | |
|---|---|
|
|
| File size: 241 bytes | |
| Rev | Line | |
|---|---|---|
| 1 | tom_pids=$(ps x | grep -v 'grep' | grep "tomcat" | awk '{print $1}' | |
| 2 | Tomcat_HOME="/opt/nutchez/tomcat" | |
| 3 | ||
| 4 | for 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.
