Merge "Elasticsearch: kill process after data node drain"
This commit is contained in:
commit
2f0c2e328d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user