Skip to content

Commit dbaacd9

Browse files
author
Matthew Fisher
committed
fix(*): be more permissive with etcd
If etcd failed to publish either due to a lock or some other behavior, it would fail and the systemd unit would suddenly stop. This makes bin/boot more permissive around failing to publish to etcd.
1 parent 1c165e3 commit dbaacd9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bin/boot

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ if [[ ! -z $PUBLISH ]]; then
7777
PORT=${PORT:-8000}
7878
PROTO=${PROTO:-tcp}
7979

80+
set +e
81+
8082
# wait for the service to become available on PUBLISH port
8183
sleep 1 && while [[ -z $(netstat -lnt | awk "\$6 == \"LISTEN\" && \$4 ~ \".$PUBLISH\" && \$1 ~ \"$PROTO.?\"") ]] ; do sleep 1; done
8284

0 commit comments

Comments
 (0)