#!/bin/sh | |
# allow to terminate themselves, if they will | |
echo "Attempting normal terminate of all java processes" | |
killall /opt/public/webtools/apps/IBMJava2-ppc-142/jre/bin/java | |
# pause briefly to allow shutdown to finish | |
sleep 10s | |
# but if the do not terminate themselves, we can safely force them down | |
echo "forcing termination of any remaing java processes" | |
killall -9 /opt/public/webtools/apps/IBMJava2-ppc-142/jre/bin/java | |
# pause briefly to allow ports to free up, etc. | |
sleep 10s | |