logstash/qa/integration/services/elasticsearch_teardown.sh
2016-09-23 12:00:14 -04:00

11 lines
No EOL
198 B
Bash
Executable file

#!/bin/bash
set -e
current_dir="$(dirname "$0")"
stop_es() {
pid=$(cat $current_dir/elasticsearch/elasticsearch.pid)
[ "x$pid" != "x" ] && [ "$pid" -gt 0 ]
kill -SIGTERM $pid
}
stop_es