All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.hazelcast.3.6.8.source-code.stop.sh Maven / Gradle / Ivy

There is a newer version: 5.4.0
Show newest version
#!/bin/sh
PRG="$0"
PRGDIR=`dirname "$PRG"`
HAZELCAST_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
PID_FILE="${HAZELCAST_HOME}"/bin/hazelcast_instance.pid

if [ ! -f "${PID_FILE}" ]; then
    echo "No hazelcast instance is running."
    exit 0
fi

PID=$(cat "${PID_FILE}");
if [ -z "${PID}" ]; then
    echo "No hazelcast instance is running."
    exit 0
else
   kill -15 "${PID}"
   rm "${PID_FILE}"
   echo "Hazelcast Instance with PID ${PID} shutdown."
   exit 0
fi




© 2015 - 2024 Weber Informatics LLC | Privacy Policy