logstash need to apply until elastic work

This commit is contained in:
Ubuntu
2017-02-02 11:45:28 +00:00
parent 25a4014a07
commit 33fa95da11
3 changed files with 11 additions and 8 deletions
+5
View File
@@ -12,6 +12,11 @@
#
set -e
host="elasticsearch"
until curl -XGET $host:9200; do
>&2 echo "Elastic is unavailable - sleeping"
sleep 1
done
# Add logstash as command if needed
if [ "${1:0:1}" = '-' ]; then