- #!/bin/sh
- cd `dirname $0`/../target
- target_dir=`pwd`
- pid=`ps ax | grep -i 'bankclear' | grep ${target_dir} | grep java | grep -v grep | awk '{print $1}'`
- if [ -z "$pid" ] ; then
- echo "No pd running.."
- exit 0;
- fi
- echo "The pd(${pid}) is running..."
- kill ${pid}
- echo "Send shutdown request to pd(${pid}) OK"
|