Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3517 from mboersma/back-to-confd-interval
Browse files Browse the repository at this point in the history
fix(*): use "confd --interval 5" instead of "--watch"
  • Loading branch information
mboersma committed Apr 17, 2015
2 parents 54757a0 + 4195e39 commit 8e960ca
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion builder/image/bin/boot
Expand Up @@ -47,7 +47,7 @@ until confd -onetime -node $ETCD --confdir /app --log-level error; do
done

# spawn confd in the background to update services based on etcd changes
confd -node $ETCD --confdir /app --log-level error --watch &
confd -node $ETCD --confdir /app --log-level error --interval 5 &
CONFD_PID=$!

# remove any pre-existing docker.sock
Expand Down
2 changes: 1 addition & 1 deletion controller/bin/boot
Expand Up @@ -91,7 +91,7 @@ function on_exit() {
trap on_exit TERM

# spawn confd in the background to update services based on etcd changes
confd -node $ETCD --confdir /app --log-level error --watch &
confd -node $ETCD --confdir /app --log-level error --interval 5 &
CONFD_PID=$!

echo deis-controller running...
Expand Down
2 changes: 1 addition & 1 deletion database/bin/boot
Expand Up @@ -110,7 +110,7 @@ function on_exit() {
trap on_exit INT TERM

# spawn confd in the background to update services based on etcd changes
confd -node $ETCD -confdir /app --log-level error --watch &
confd -node $ETCD -confdir /app --log-level error --interval 5 &
CONFD_PID=$!

# wait for the service to become available
Expand Down
2 changes: 1 addition & 1 deletion registry/bin/boot
Expand Up @@ -67,7 +67,7 @@ function on_exit() {
trap on_exit INT TERM

# spawn confd in the background to update services based on etcd changes
confd -node $ETCD --confdir /app --log-level error --watch &
confd -node $ETCD --confdir /app --log-level error --interval 5 &
CONFD_PID=$!

echo deis-registry running...
Expand Down
2 changes: 1 addition & 1 deletion store/admin/bin/boot
Expand Up @@ -6,7 +6,7 @@
ETCD_PORT=${ETCD_PORT:-4001}
ETCD="$HOST:$ETCD_PORT"

confd -node $ETCD --confdir /app --log-level error --watch &
confd -node $ETCD --confdir /app --log-level error --interval 5 &

# loop forever until the container is stopped
while true; do
Expand Down
3 changes: 1 addition & 2 deletions store/gateway/bin/boot
Expand Up @@ -106,7 +106,7 @@ function on_exit() {
trap on_exit INT TERM

# spawn confd in the background to update services based on etcd changes
confd -node $ETCD --confdir /app --log-level error --watch &
confd -node $ETCD --confdir /app --log-level error --interval 5 &
CONFD_PID=$!

echo deis-store-gateway running...
Expand Down Expand Up @@ -142,4 +142,3 @@ if [[ ! -z $EXTERNAL_PORT ]]; then
fi

wait

0 comments on commit 8e960ca

Please sign in to comment.