Skip to content

Commit

Permalink
Handling Interrupt Signal
Browse files Browse the repository at this point in the history
  • Loading branch information
goru97 committed Jun 27, 2016
1 parent 94ad87c commit 6079575
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/blueflood-docker/docker-entrypoint.sh
Expand Up @@ -16,9 +16,9 @@ then
export ELASTICSEARCH_HOST="$ELASTICSEARCH_PORT_9300_TCP_ADDR"
fi


######## Connecting to Cassandra and loading Blueflood's schema #######
CASSCOUNTER=0
trap "exit" INT
while [[ $CASSCOUNTER -lt 180 ]]; #Wait for 180 seconds for cassandra to get ready.
do
let CASSCOUNTER=CASSCOUNTER+2
Expand All @@ -43,6 +43,7 @@ cqlsh $CASSANDRA_HOST -f blueflood.cdl

######## Connecting to Elasticsearch #######
ESCOUNTER=0
trap "exit" INT
while [[ $ESCOUNTER -lt 120 ]]; #Wait for 120 seconds for elasticsearch to get ready.
do
let ESCOUNTER=ESCOUNTER+2
Expand Down

0 comments on commit 6079575

Please sign in to comment.