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 9c3361d + 9f69da3 commit 3a5484bCopy full SHA for 3a5484b
deps/rabbit_common/mk/rabbitmq-run.mk
@@ -33,6 +33,8 @@ RABBITMQCTL ?= $(RABBITMQ_SCRIPTS_DIR)/rabbitmqctl
33
RABBITMQ_UPGRADE ?= $(RABBITMQ_SCRIPTS_DIR)/rabbitmq-upgrade
34
endif
35
36
+RESTART_DELAY ?= 0
37
+
38
export RABBITMQ_SCRIPTS_DIR RABBITMQCTL RABBITMQ_PLUGINS RABBITMQ_SERVER RABBITMQ_UPGRADE
39
40
# We export MAKE to be sure scripts and tests use the proper command.
@@ -415,6 +417,8 @@ restart-cluster:
415
417
$(RABBITMQ_UPGRADE) -n "$$nodename" drain; \
416
418
$(MAKE) stop-node \
419
RABBITMQ_NODENAME="$$nodename"; \
420
+ echo "Sleeping for $(RESTART_DELAY) seconds..."; \
421
+ sleep $(RESTART_DELAY); \
422
$(MAKE) start-background-broker \
423
NOBUILD=1 \
424
RABBITMQ_NODENAME="$$nodename" \
0 commit comments