summaryrefslogtreecommitdiff
path: root/scripts/rabbitmq-service.bat
diff options
context:
space:
mode:
authorEmile Joubert <emile@rabbitmq.com>2011-10-17 14:44:29 +0100
committerEmile Joubert <emile@rabbitmq.com>2011-10-17 14:44:29 +0100
commit1bc0935572833816fe2c46801735bd06e4bb11f1 (patch)
tree6dc05a7322d5c67c9c50fe19e90809b2ecf46c18 /scripts/rabbitmq-service.bat
parent3e91f3ed35df554df2ded87e9b73a83d8a61c002 (diff)
downloadrabbitmq-server-1bc0935572833816fe2c46801735bd06e4bb11f1.tar.gz
Windows slashesbug24483
Diffstat (limited to 'scripts/rabbitmq-service.bat')
-rwxr-xr-xscripts/rabbitmq-service.bat13
1 files changed, 5 insertions, 8 deletions
diff --git a/scripts/rabbitmq-service.bat b/scripts/rabbitmq-service.bat
index 140d8955..4d3fce49 100755
--- a/scripts/rabbitmq-service.bat
+++ b/scripts/rabbitmq-service.bat
@@ -89,14 +89,11 @@ if not exist "!ERLANG_SERVICE_MANAGER_PATH!\erlsrv.exe" (
exit /B 1
)
-rem erlang prefers forwardslash as separator in paths
-set RABBITMQ_BASE_UNIX=!RABBITMQ_BASE:\=/!
-
if "!RABBITMQ_MNESIA_BASE!"=="" (
- set RABBITMQ_MNESIA_BASE=!RABBITMQ_BASE_UNIX!/db
+ set RABBITMQ_MNESIA_BASE=!RABBITMQ_BASE!/db
)
if "!RABBITMQ_LOG_BASE!"=="" (
- set RABBITMQ_LOG_BASE=!RABBITMQ_BASE_UNIX!/log
+ set RABBITMQ_LOG_BASE=!RABBITMQ_BASE!/log
)
@@ -169,7 +166,7 @@ set RABBITMQ_EBIN_ROOT=!TDP0!..\ebin
"!RABBITMQ_PLUGINS_EXPAND_DIR:\=/!" ^
""
-set RABBITMQ_BOOT_FILE=!RABBITMQ_PLUGINS_EXPAND_DIR!/rabbit
+set RABBITMQ_BOOT_FILE=!RABBITMQ_PLUGINS_EXPAND_DIR!\rabbit
if ERRORLEVEL 1 (
exit /B 1
)
@@ -177,7 +174,7 @@ if ERRORLEVEL 1 (
set RABBITMQ_EBIN_PATH=
if "!RABBITMQ_CONFIG_FILE!"=="" (
- set RABBITMQ_CONFIG_FILE=!RABBITMQ_BASE!/rabbitmq
+ set RABBITMQ_CONFIG_FILE=!RABBITMQ_BASE!\rabbitmq
)
if exist "!RABBITMQ_CONFIG_FILE!.config" (
@@ -219,7 +216,7 @@ set ERLANG_SERVICE_ARGUMENTS=!ERLANG_SERVICE_ARGUMENTS:"=\"!
"!ERLANG_SERVICE_MANAGER_PATH!\erlsrv" set !RABBITMQ_SERVICENAME! ^
-machine "!ERLANG_SERVICE_MANAGER_PATH!\erl.exe" ^
--env ERL_CRASH_DUMP="!RABBITMQ_BASE_UNIX!/erl_crash.dump" ^
+-env ERL_CRASH_DUMP="!RABBITMQ_BASE:\=/!/erl_crash.dump" ^
-workdir "!RABBITMQ_BASE!" ^
-stopaction "rabbit:stop_and_halt()." ^
-sname !RABBITMQ_NODENAME! ^