.hazelcast.3.6-EA.source-code.stop.sh Maven / Gradle / Ivy
#!/bin/sh
PRG="$0"
PRGDIR=`dirname "$PRG"`
HAZELCAST_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
PID_FILE=$HAZELCAST_HOME/bin/hazelcast_instance.pid
PID=$(cat ${PID_FILE});
if [[ -z "${PID}" ]]; then
echo "${PID_FILE}.pid is not running (missing PID)."
else
kill ${PID}
fi