~lynxman/ubuntu/oneiric/rabbitmq-server/lp_838959

« back to all changes in this revision

Viewing changes to scripts/rabbitmq-server.bat

  • Committer: Bazaar Package Importer
  • Author(s): John Leuner
  • Date: 2011-02-05 10:21:16 UTC
  • mfrom: (0.1.17 sid)
  • Revision ID: james.westby@ubuntu.com-20110205102116-4e2d52u30t63vt1l
Tags: 2.3.1-1
New upstream release, closes: #611253

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
@echo off
2
 
REM   The contents of this file are subject to the Mozilla Public License
3
 
REM   Version 1.1 (the "License"); you may not use this file except in
4
 
REM   compliance with the License. You may obtain a copy of the License at
5
 
REM   http://www.mozilla.org/MPL/
6
 
REM
7
 
REM   Software distributed under the License is distributed on an "AS IS"
8
 
REM   basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
9
 
REM   License for the specific language governing rights and limitations
10
 
REM   under the License.
11
 
REM
12
 
REM   The Original Code is RabbitMQ.
13
 
REM
14
 
REM   The Initial Developers of the Original Code are LShift Ltd,
15
 
REM   Cohesive Financial Technologies LLC, and Rabbit Technologies Ltd.
16
 
REM
17
 
REM   Portions created before 22-Nov-2008 00:00:00 GMT by LShift Ltd,
18
 
REM   Cohesive Financial Technologies LLC, or Rabbit Technologies Ltd
19
 
REM   are Copyright (C) 2007-2008 LShift Ltd, Cohesive Financial
20
 
REM   Technologies LLC, and Rabbit Technologies Ltd.
21
 
REM
22
 
REM   Portions created by LShift Ltd are Copyright (C) 2007-2010 LShift
23
 
REM   Ltd. Portions created by Cohesive Financial Technologies LLC are
24
 
REM   Copyright (C) 2007-2010 Cohesive Financial Technologies
25
 
REM   LLC. Portions created by Rabbit Technologies Ltd are Copyright
26
 
REM   (C) 2007-2010 Rabbit Technologies Ltd.
27
 
REM
28
 
REM   All Rights Reserved.
29
 
REM
30
 
REM   Contributor(s): ______________________________________.
 
2
REM  The contents of this file are subject to the Mozilla Public License
 
3
REM  Version 1.1 (the "License"); you may not use this file except in
 
4
REM  compliance with the License. You may obtain a copy of the License
 
5
REM  at http://www.mozilla.org/MPL/
 
6
REM
 
7
REM  Software distributed under the License is distributed on an "AS IS"
 
8
REM  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
9
REM  the License for the specific language governing rights and
 
10
REM  limitations under the License.
 
11
REM
 
12
REM  The Original Code is RabbitMQ.
 
13
REM
 
14
REM  The Initial Developer of the Original Code is VMware, Inc.
 
15
REM  Copyright (c) 2007-2011 VMware, Inc.  All rights reserved.
31
16
REM
32
17
 
33
18
setlocal
52
37
 
53
38
if "!RABBITMQ_NODE_IP_ADDRESS!"=="" (
54
39
   if not "!RABBITMQ_NODE_PORT!"=="" (
55
 
      set RABBITMQ_NODE_IP_ADDRESS=0.0.0.0
 
40
      set RABBITMQ_NODE_IP_ADDRESS=auto
56
41
   )
57
42
) else (
58
43
   if "!RABBITMQ_NODE_PORT!"=="" (
117
102
"!ERLANG_HOME!\bin\erl.exe" ^
118
103
-pa "!RABBITMQ_EBIN_ROOT!" ^
119
104
-noinput -hidden ^
120
 
-s rabbit_plugin_activator ^
 
105
-s rabbit_prelaunch ^
 
106
-sname rabbitmqprelaunch!RANDOM! ^
121
107
-extra "!RABBITMQ_PLUGINS_DIR:\=/!" ^
122
 
       "!RABBITMQ_PLUGINS_EXPAND_DIR:\=/!"
 
108
       "!RABBITMQ_PLUGINS_EXPAND_DIR:\=/!" ^
 
109
       "!RABBITMQ_NODENAME!"
123
110
 
124
111
set RABBITMQ_BOOT_FILE=!RABBITMQ_PLUGINS_EXPAND_DIR!\rabbit
125
 
if not exist "!RABBITMQ_BOOT_FILE!.boot" (
126
 
    echo Custom Boot File "!RABBITMQ_BOOT_FILE!.boot" is missing.
 
112
if ERRORLEVEL 1 (
127
113
    exit /B 1
128
114
)
129
115