Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit ec671a2

Browse files
committed
rabbitmq-run.mk: Fix stop-brokers with NODES > 1
The seq command should include a -1 increment to stop nodes in reverse order. Previously, as an example with NODES=2, will run `seq 2 1` which produces no items to iterate, so the entire stop-node loop does not execute and the brokers are left running.
1 parent 65867b1 commit ec671a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mk/rabbitmq-run.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ start-brokers start-cluster:
341341
done
342342

343343
stop-brokers stop-cluster:
344-
@for n in $$(seq $(NODES) 1); do \
344+
@for n in $$(seq $(NODES) -1 1); do \
345345
nodename="rabbit-$$n@$$(hostname -s)"; \
346346
$(MAKE) stop-node \
347347
RABBITMQ_NODENAME="$$nodename"; \

0 commit comments

Comments
 (0)