kill consul before running.

This commit is contained in:
Spencer Gibb
2018-05-16 16:07:32 -04:00
parent 0045de1be8
commit e4e2e302dc

View File

@@ -1,4 +1,5 @@
#!/bin/bash
killall consul
BASEDIR=`dirname $0`/../../..
${BASEDIR}/consul agent -server -bootstrap-expect 1 -advertise 127.0.0.1 -data-dir /tmp/consul -ui-dir ${BASEDIR}/src/test/resources/consul_ui -config-dir ${BASEDIR}/src/test/resources/consul_config &
# wait for consul to elect a leader before sending acl