Commit 3364937a by Chavee Issariyapat

update shell

parent df8fcbf0
......@@ -121,7 +121,9 @@ siguser1_handler() {
# SIGTERM-handler
sigterm_handler() {
echo "Stopping VerneMQ Pod..."
if [ $pid -ne 0 ]; then
echo "Leaving cluster..."
# this will stop the VerneMQ process
vmq-admin cluster leave node=VerneMQ@$IP_ADDRESS -k > /dev/null
wait "$pid"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment