summaryrefslogtreecommitdiff
path: root/scripts/rabbitmq-service.bat
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonyg@lshift.net>2010-05-14 21:48:13 +1200
committerTony Garnock-Jones <tonyg@lshift.net>2010-05-14 21:48:13 +1200
commit381604751ece857e6a6eb1b52bf8052d1e74d106 (patch)
tree943befc4f1129112628cdfac360e3f9be5f57247 /scripts/rabbitmq-service.bat
parent541740d66d346a28debc533c81550c7c0c812692 (diff)
downloadrabbitmq-server-381604751ece857e6a6eb1b52bf8052d1e74d106.tar.gz
Attempt at an equivalent patch for the Windows scripts. Untested!
Diffstat (limited to 'scripts/rabbitmq-service.bat')
-rw-r--r--scripts/rabbitmq-service.bat25
1 files changed, 18 insertions, 7 deletions
diff --git a/scripts/rabbitmq-service.bat b/scripts/rabbitmq-service.bat
index a4021fd6..a25e236a 100644
--- a/scripts/rabbitmq-service.bat
+++ b/scripts/rabbitmq-service.bat
@@ -181,15 +181,26 @@ if errorlevel 1 (
echo !RABBITMQ_SERVICENAME! service is already present - only updating service parameters
)
+set RABBITMQ_PLUGINS_DIR=!TDP0!..\plugins
+set RABBITMQ_PLUGINS_EXPAND_DIR=!TDP0!..\priv\plugins
set RABBITMQ_EBIN_ROOT=!TDP0!..\ebin
-if exist "!RABBITMQ_EBIN_ROOT!\rabbit.boot" (
- echo Using Custom Boot File "!RABBITMQ_EBIN_ROOT!\rabbit.boot"
- set RABBITMQ_BOOT_FILE=!RABBITMQ_EBIN_ROOT!\rabbit
- set RABBITMQ_EBIN_PATH=
-) else (
- set RABBITMQ_BOOT_FILE=start_sasl
- set RABBITMQ_EBIN_PATH=-pa "!RABBITMQ_EBIN_ROOT!"
+
+"!ERLANG_HOME!\bin\erl.exe" ^
+-pa "!RABBITMQ_EBIN_ROOT!" ^
+-noinput -hidden ^
+-s rabbit_plugin_activator ^
+-rabbit plugins_dir \""!RABBITMQ_PLUGINS_DIR:\=/!"\" ^
+-rabbit plugins_expand_dir \""!RABBITMQ_PLUGINS_EXPAND_DIR:\=/!"\" ^
+-rabbit rabbit_ebin \""!RABBITMQ_EBIN_ROOT:\=/!"\" ^
+-extra !STAR!
+
+if not exist "!RABBITMQ_EBIN_ROOT!\rabbit.boot" (
+ echo Custom Boot File "!RABBITMQ_EBIN_ROOT!\rabbit.boot" is missing.
+ exit /B 1
)
+set RABBITMQ_BOOT_FILE=!RABBITMQ_EBIN_ROOT!\rabbit
+set RABBITMQ_EBIN_PATH=
+
if "!RABBITMQ_CONFIG_FILE!"=="" (
set RABBITMQ_CONFIG_FILE=!RABBITMQ_BASE!\rabbitmq
)