We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd3e9d9 + cd836e0 commit e19ae26Copy full SHA for e19ae26
bin/supervisord-wrapper.sh
@@ -67,10 +67,12 @@ trap 'shutdown' EXIT
67
68
if ! $ETCDCTL mk $ETCD_RABBITMQ_BASE/rabbitmq/seed $NODE; then
69
seed="$($ETCDCTL get $ETCD_RABBITMQ_BASE/rabbitmq/seed)"
70
- while [ "$($ETCDCTL get $ETCD_RABBITMQ_BASE/rabbitmq/initialized/$seed)" != 'true' ]; do
71
- echo "Waiting for seed node initialization..."
72
- sleep 60s
73
- done
+ if [ "$seed" != "$NODE" ]; then
+ while [ "$($ETCDCTL get $ETCD_RABBITMQ_BASE/rabbitmq/initialized/$seed)" != 'true' ]; do
+ echo "Waiting for seed node initialization..."
+ sleep 60s
74
+ done
75
+ fi
76
fi
77
78
if [ -f /var/lib/rabbitmq/reset ]; then
0 commit comments