Merge "Elasticsearch: kill process after data node drain"

This commit is contained in:
Zuul 2019-05-31 23:48:33 +00:00 committed by Gerrit Code Review
commit 2f0c2e328d

View File

@ -66,6 +66,7 @@ function start_data_node () {
sleep 5 sleep 5
done done
echo "Node ${NODE_NAME} is ready to shutdown" echo "Node ${NODE_NAME} is ready to shutdown"
kill -TERM 1
} }
trap drain_data_node TERM EXIT HUP INT trap drain_data_node TERM EXIT HUP INT
wait wait