summaryrefslogtreecommitdiff
path: root/scripts/rabbitmq-service.bat
diff options
context:
space:
mode:
authorPaul Jones <paulj@lshift.net>2010-02-09 12:39:42 +0000
committerPaul Jones <paulj@lshift.net>2010-02-09 12:39:42 +0000
commit1b1f9d14e56d3316c016daa0e8394b0b1ef60191 (patch)
treeada9da4beec677f274c50f04d4340ab967c06ae1 /scripts/rabbitmq-service.bat
parent56faa8932d4e6e8579b83f57ed72ca8c33460126 (diff)
parent394a90eefd536ebe93a939f539360224920b4656 (diff)
downloadrabbitmq-server-1b1f9d14e56d3316c016daa0e8394b0b1ef60191.tar.gz
Merge bug22295 into default
Diffstat (limited to 'scripts/rabbitmq-service.bat')
-rwxr-xr-xscripts/rabbitmq-service.bat27
1 files changed, 20 insertions, 7 deletions
diff --git a/scripts/rabbitmq-service.bat b/scripts/rabbitmq-service.bat
index 8510c4da..2d636ebb 100755
--- a/scripts/rabbitmq-service.bat
+++ b/scripts/rabbitmq-service.bat
@@ -45,17 +45,30 @@ if "%RABBITMQ_NODENAME%"=="" (
)
if "%RABBITMQ_NODE_IP_ADDRESS%"=="" (
- if not "%RABBITMQ_NODE_PORT%"=="" (
- set RABBITMQ_NODE_IP_ADDRESS=0.0.0.0
- )
+ if not "%RABBITMQ_NODE_PORT%"=="" (
+ set RABBITMQ_NODE_IP_ADDRESS=0.0.0.0
+ )
) else (
- if "%RABBITMQ_NODE_PORT%"=="" (
- set RABBITMQ_NODE_PORT=5672
- )
+ if "%RABBITMQ_NODE_PORT%"=="" (
+ set RABBITMQ_NODE_PORT=5672
+ )
)
if "%ERLANG_SERVICE_MANAGER_PATH%"=="" (
- set ERLANG_SERVICE_MANAGER_PATH=C:\Program Files\erl5.6.5\erts-5.6.5\bin
+ if not exist "%ERLANG_HOME%\bin\erl.exe" (
+ echo.
+ echo ******************************
+ echo ERLANG_HOME not set correctly.
+ echo ******************************
+ echo.
+ echo Please either set ERLANG_HOME to point to your Erlang installation or place the
+ echo RabbitMQ server distribution in the Erlang lib folder.
+ echo.
+ exit /B
+ )
+ for /f "delims=" %%i in ('dir /ad/b "%ERLANG_HOME%"') do if exist "%ERLANG_HOME%\%%i\bin\erlsrv.exe" (
+ set ERLANG_SERVICE_MANAGER_PATH=%ERLANG_HOME%\%%i\bin
+ )
)
set CONSOLE_FLAG=