Skip to content

Commit 3d5a92b

Browse files
author
Matthew Fisher
committed
Merge pull request #3387 from bacongobbler/2160-confd-watch
feat(*): use confd --watch
2 parents 37d8f0e + 5a5ab0a commit 3d5a92b

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

builder/image/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ until confd -onetime -node $ETCD --confdir /app --interval 5 --quiet; do
4747
done
4848

4949
# spawn confd in the background to update services based on etcd changes
50-
confd -node $ETCD --confdir /app --interval 5 --quiet &
50+
confd -node $ETCD --confdir /app --interval 5 --quiet --watch &
5151
CONFD_PID=$!
5252

5353
# remove any pre-existing docker.sock

controller/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function on_exit() {
8383
trap on_exit TERM
8484

8585
# spawn confd in the background to update services based on etcd changes
86-
confd -node $ETCD --confdir /app --interval 5 --quiet &
86+
confd -node $ETCD --confdir /app --interval 5 --quiet --watch &
8787
CONFD_PID=$!
8888

8989
echo deis-controller running...

database/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function on_exit() {
102102
trap on_exit INT TERM
103103

104104
# spawn confd in the background to update services based on etcd changes
105-
confd -node $ETCD -confdir /app --interval 5 --quiet &
105+
confd -node $ETCD -confdir /app --interval 5 --quiet --watch &
106106
CONFD_PID=$!
107107

108108
# wait for the service to become available

registry/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function on_exit() {
6767
trap on_exit INT TERM
6868

6969
# spawn confd in the background to update services based on etcd changes
70-
confd -node $ETCD --confdir /app --interval 5 --quiet &
70+
confd -node $ETCD --confdir /app --interval 5 --quiet --watch &
7171
CONFD_PID=$!
7272

7373
echo deis-registry running...

store/admin/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
ETCD_PORT=${ETCD_PORT:-4001}
77
ETCD="$HOST:$ETCD_PORT"
88

9-
confd -node $ETCD --confdir /app --interval 5 --quiet &
9+
confd -node $ETCD --confdir /app --interval 5 --quiet --watch &
1010

1111
# loop forever until the container is stopped
1212
while true; do

store/gateway/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function on_exit() {
106106
trap on_exit INT TERM
107107

108108
# spawn confd in the background to update services based on etcd changes
109-
confd -node $ETCD --confdir /app --interval 5 --quiet &
109+
confd -node $ETCD --confdir /app --interval 5 --quiet --watch &
110110
CONFD_PID=$!
111111

112112
echo deis-store-gateway running...

0 commit comments

Comments
 (0)