diff --git a/elasticsearch/templates/bin/_elasticsearch.sh.tpl b/elasticsearch/templates/bin/_elasticsearch.sh.tpl index 0cc1353a8..ecd619cd8 100644 --- a/elasticsearch/templates/bin/_elasticsearch.sh.tpl +++ b/elasticsearch/templates/bin/_elasticsearch.sh.tpl @@ -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