david_williams | b189de8 | 2006-11-29 03:50:07 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # remember to leave no slashes on filename in source command, |
| 3 | # so that users path is used to find it (first) |
| 4 | if [ -n $BUILD_INITIALIZED ] |
| 5 | then |
| 6 | source commonVariations.shsource |
| 7 | source computeCommon.shsource |
| 8 | fi |
| 9 | |
| 10 | # allow to terminate themselves, if they will |
| 11 | echo "Attempting normal terminate of all java processes" |
| 12 | killall ${JAVA_HOME}/jre/bin/java |
| 13 | # pause briefly to allow shutdown to finish |
| 14 | sleep 10s |
| 15 | |
| 16 | # but if the do not terminate themselves, we can safely force them down |
| 17 | echo "forcing termination of any remaing java processes" |
| 18 | killall -9 ${JAVA_HOME}/jre/bin/java/jre/bin/java |
| 19 | # pause briefly to allow ports to free up, etc. |
| 20 | sleep 10s |
| 21 | |