rabbitmq-server
rabbitmq-server copied to clipboard
RFE to change the default RABBITMQ_BASE path in Windows.
The default RABBITMQ_BASE path in windows is problematic. The service is configured by default to start with the Local Service account which has nothing to do with the user who installed it. It is not intuitive for a system wide application (as is the case with a Windows service installed in this fashion) to reference any data in a users own profile. That profile may be subject to removal by age or simply when logging off if configured to do so. For most corporate environments, this path may also be subject to roaming and replication as well.
The use of AppData is appropriate for a user running the server (not service) manually with the RabbitMQ Command Prompt as the output is user specific and not expected to be persisted (although it certainly may) when the user logs out or kills the RabbitMQ server instance.
This path needs to have a different location, an argument exist for one of %ProgramData%, %ProgramFiles% or %ProgramFiles(x86)% but a better option might be to ask the user when installing the service at application installation time and force the user to choose and populate RABBITMQ_BASE. That would remove the ambiguity when installed as a service.
Some links regarding the locations:
- https://msdn.microsoft.com/en-us/library/windows/desktop/mt674655%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
- https://msdn.microsoft.com/en-us/library/ms995853.aspx
- https://msdn.microsoft.com/en-ca/library/windows/apps/hh465094.aspx?f=255&MSPPError=-2147217396