Skip to content

Allow several env variables to be set in rabbitmq-env-conf.bat#9269

Merged
michaelklishin merged 1 commit intomainfrom
rabbitmq-server-9258
Sep 5, 2023
Merged

Allow several env variables to be set in rabbitmq-env-conf.bat#9269
michaelklishin merged 1 commit intomainfrom
rabbitmq-server-9258

Conversation

@lukebakken
Copy link
Copy Markdown
Collaborator

Fixes #9258

This patch allows the following variables to be set by rabbitmq-env-conf.bat:

  • LOG_BASE
  • MNESIA_BASE
  • CONFIG_FILE

Fixes #9258

This patch allows the following variables to be set by `rabbitmq-env-conf.bat`:

* `LOG_BASE`
* `MNESIA_BASE`
* `CONFIG_FILE`
@lukebakken lukebakken self-assigned this Sep 3, 2023
@lukebakken lukebakken marked this pull request as ready for review September 4, 2023 17:36
@lukebakken
Copy link
Copy Markdown
Collaborator Author

cc @fnbk in case you'd like to test this out as well.

Test process:

  • Create $env:APPDATA\RabbitMQ\rabbitmq-env-conf.bat (powershell) with this content: rabbitmq-env-conf.bat.txt

  • Create C:\ProgramData\RabbitMQ and C:\ProgramData\RabbitMQ\rabbitmq.conf: rabbitmq.conf.txt

  • Install Erlang from the OTP installer. This is the RabbitMQ installer I built from this branch: rabbitmq-installer.zip

  • When installing RabbitMQ, use the defaults, which will install and start the service

  • Note that the expected directories are created:

C:\ProgramData\RabbitMQ
> dir

    Directory: C:\ProgramData\RabbitMQ

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----            9/4/2023 10:34 AM                custom-log-base
d----            9/4/2023 10:34 AM                custom-mnesia-base
-a---            9/4/2023 10:30 AM            179 rabbitmq.conf

@michaelklishin michaelklishin added this to the 3.13.0 milestone Sep 5, 2023
@michaelklishin michaelklishin merged commit 65de71e into main Sep 5, 2023
@michaelklishin michaelklishin deleted the rabbitmq-server-9258 branch September 5, 2023 21:22
michaelklishin added a commit that referenced this pull request Sep 5, 2023
Allow several env variables to be set in rabbitmq-env-conf.bat (backport #9269)
michaelklishin added a commit that referenced this pull request Sep 5, 2023
Allow several env variables to be set in rabbitmq-env-conf.bat (backport #9269) (backport #9307)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

set RABBITMQ_MNESIA_BASE in rabbitmq-env-conf.bat

2 participants