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