logstash/qa/integration/services/elasticsearch_teardown.sh
Jake Landis 1b33cbab67 RATS: Remove Docker from integration tests
This is in prep for a Docker based test run approach, and by removing the dependent Docker containers we will avoid Docker in Docker requirements.

Fixes #8211
2017-09-12 13:51:03 +00:00

15 lines
No EOL
250 B
Bash
Executable file

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