services.hazelcast-all.1.1.0.1-jre15.source-code.stop-all.sh Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hazelcast-all Show documentation
Show all versions of hazelcast-all Show documentation
Kubernetes Service Discovery for Hazelcast Discovery SPI
#!/bin/sh
#### This script kills all the instances started with start.sh script.
PIDS=$(pgrep -f HazelcastMemberStarter)
if [ -z "$PIDS" ]; then
echo "No Hazelcast IMDG member found to stop"
exit 1
else
kill -s TERM $PIDS
echo "Stopped Hazelcast instances with the following PIDs:"
echo "$PIDS"
fi