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

Commit

Permalink
feat(*): use confd --watch
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Fisher committed Mar 26, 2015
1 parent 4094b81 commit 5a5ab0a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion builder/image/bin/boot
Expand Up @@ -47,7 +47,7 @@ until confd -onetime -node $ETCD --confdir /app --interval 5 --quiet; do
done

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

# remove any pre-existing docker.sock
Expand Down
2 changes: 1 addition & 1 deletion controller/bin/boot
Expand Up @@ -83,7 +83,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 --interval 5 --quiet &
confd -node $ETCD --confdir /app --interval 5 --quiet --watch &
CONFD_PID=$!

echo deis-controller running...
Expand Down
2 changes: 1 addition & 1 deletion database/bin/boot
Expand Up @@ -102,7 +102,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 --interval 5 --quiet &
confd -node $ETCD -confdir /app --interval 5 --quiet --watch &
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 --interval 5 --quiet &
confd -node $ETCD --confdir /app --interval 5 --quiet --watch &
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 --interval 5 --quiet &
confd -node $ETCD --confdir /app --interval 5 --quiet --watch &

# loop forever until the container is stopped
while true; do
Expand Down
2 changes: 1 addition & 1 deletion 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 --interval 5 --quiet &
confd -node $ETCD --confdir /app --interval 5 --quiet --watch &
CONFD_PID=$!

echo deis-store-gateway running...
Expand Down

0 comments on commit 5a5ab0a

Please sign in to comment.