summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2010-02-08 15:06:37 +0000
committerMatthew Sackman <matthew@lshift.net>2010-02-08 15:06:37 +0000
commit3535c682501a40549e8427663d64423ef0812bfb (patch)
tree81564bd571f6031d512e77efa8f5f432d60ca7d6
parentdfdf6c9e201ea127ba7a6991baed88bf95be5367 (diff)
downloadrabbitmq-server-bug22303.tar.gz
Don't hardcode erts path, instead, searchbug22303
-rwxr-xr-xscripts/rabbitmq-service.bat4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/rabbitmq-service.bat b/scripts/rabbitmq-service.bat
index 9fc4f2e3..cc2e8166 100755
--- a/scripts/rabbitmq-service.bat
+++ b/scripts/rabbitmq-service.bat
@@ -66,7 +66,9 @@ if "%ERLANG_SERVICE_MANAGER_PATH%"=="" (
echo.
exit /B
)
- set ERLANG_SERVICE_MANAGER_PATH=%ERLANG_HOME%\erts-5.7.4\bin
+ 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=