diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2015-07-15 18:33:29 +0300 |
|---|---|---|
| committer | Michael Klishin <mklishin@pivotal.io> | 2015-07-15 18:33:29 +0300 |
| commit | cfc84df229bc014d5ebfdb9ce033d57a5d2b2dfa (patch) | |
| tree | 72461df8f053bd2acd3b773c80033a1a6bc84cc6 /scripts/rabbitmqctl.bat | |
| parent | 1372de63e8a874554385011beb0cc2588b87842f (diff) | |
| parent | 9a1f21f8e4ca2d721493f83a01e0d941f78c1407 (diff) | |
| download | rabbitmq-server-git-cfc84df229bc014d5ebfdb9ce033d57a5d2b2dfa.tar.gz | |
Merge branch 'stable'
Diffstat (limited to 'scripts/rabbitmqctl.bat')
| -rwxr-xr-x | scripts/rabbitmqctl.bat | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/scripts/rabbitmqctl.bat b/scripts/rabbitmqctl.bat index ef9b13c7ae..45e2929579 100755 --- a/scripts/rabbitmqctl.bat +++ b/scripts/rabbitmqctl.bat @@ -24,11 +24,22 @@ set TDP0=%~dp0 set STAR=%*
setlocal enabledelayedexpansion
+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 1
+)
+
REM Get default settings with user overrides for (RABBITMQ_)<var_name>
REM Non-empty defaults should be set in rabbitmq-env
-call "%cd%\rabbitmq-env.bat"
+call "%TDP0%\rabbitmq-env.bat"
-REM Uncomment this later, just for testing now
"!ERLANG_HOME!\bin\erl.exe" ^
-pa "!TDP0!..\ebin" ^
-noinput ^
@@ -41,4 +52,4 @@ REM Uncomment this later, just for testing now -extra !STAR!
endlocal
-endlocal
\ No newline at end of file +endlocal
|
