Elasticsearch: kill process after data node drain

This updates the Elasticsearch entrypoint override for the data
nodes to include a signal to kill the process after the trap to
drain each data node completes

Change-Id: Iccd4342fe16d06787cb24342d9a57e4de12e6980
This commit is contained in:
Steve Wilkerson 2019-05-30 15:12:37 -05:00
parent c34dbeeec8
commit b0706544f7

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