diff options
author | Emile Joubert <emile@rabbitmq.com> | 2013-12-13 16:13:47 +0000 |
---|---|---|
committer | Emile Joubert <emile@rabbitmq.com> | 2013-12-13 16:13:47 +0000 |
commit | 3c1acda9db5a8b5c18d9d6237f208bbf44b0b05f (patch) | |
tree | ffca8648da723b8dd3316a65056f3bf272e373fb | |
parent | 9321f2dcdbdf655cdafd5843cbb766c9d6d1cb4b (diff) | |
download | rabbitmq-server-bug25925.tar.gz |
Strip extra parameter when installing servicebug25925
-rwxr-xr-x | scripts/rabbitmq-service.bat | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/rabbitmq-service.bat b/scripts/rabbitmq-service.bat index d36b130c..8c350f7a 100755 --- a/scripts/rabbitmq-service.bat +++ b/scripts/rabbitmq-service.bat @@ -22,9 +22,17 @@ rem enabling delayed expansion set TN0=%~n0
set TDP0=%~dp0
set P1=%1
-set STAR=%*
setlocal enabledelayedexpansion
+set STARVAR=
+shift
+:loop1
+if "%1"=="" goto after_loop
+ set STARVAR=%STARVAR% %1
+ shift
+goto loop1
+:after_loop
+
if "!RABBITMQ_SERVICENAME!"=="" (
set RABBITMQ_SERVICENAME=RabbitMQ
)
@@ -200,7 +208,7 @@ set ERLANG_SERVICE_ARGUMENTS= ^ -os_mon start_memsup false ^
-mnesia dir \""!RABBITMQ_MNESIA_DIR:\=/!"\" ^
!RABBITMQ_SERVER_START_ARGS! ^
-!STAR!
+!STARVAR!
set ERLANG_SERVICE_ARGUMENTS=!ERLANG_SERVICE_ARGUMENTS:\=\\!
set ERLANG_SERVICE_ARGUMENTS=!ERLANG_SERVICE_ARGUMENTS:"=\"!
|