From 7a3bd539d3b15f76200308ca0cda96caa288ad62 Mon Sep 17 00:00:00 2001 From: Luke Bakken Date: Mon, 7 Dec 2020 12:03:06 -0800 Subject: Pass RABBITMQ_NODENAME via Windows service environment Without this change using anything other than `rabbit` or the `rabbitmq-env-conf.bat` file will result in `erlang_dist_running_with_unexpected_nodename` Follow-up to #2673 cc @dumbbell @michaelklishin --- deps/rabbit/scripts/rabbitmq-service.bat | 1 + 1 file changed, 1 insertion(+) diff --git a/deps/rabbit/scripts/rabbitmq-service.bat b/deps/rabbit/scripts/rabbitmq-service.bat index 93597f6e9d..094b393c5c 100644 --- a/deps/rabbit/scripts/rabbitmq-service.bat +++ b/deps/rabbit/scripts/rabbitmq-service.bat @@ -224,6 +224,7 @@ rem user-specific directory. -env ERL_MAX_ETS_TABLES="!ERL_MAX_ETS_TABLES!" ^ -env ERL_MAX_PORTS="!ERL_MAX_PORTS!" ^ -env RABBITMQ_BASE="!RABBITMQ_BASE!" ^ +-env RABBITMQ_NODENAME="!RABBITMQ_NODENAME!" ^ -workdir "!RABBITMQ_BASE!" ^ -stopaction "rabbit:stop_and_halt()." ^ !RABBITMQ_NAME_TYPE! !RABBITMQ_NODENAME! ^ -- cgit v1.2.1