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
1 changed files with 1 additions and 0 deletions

View File

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