scripts/rabbitmqctl
author Simon MacMullen <simon@rabbitmq.com>
Thu Apr 17 14:48:59 2014 +0100 (41 hours ago)
changeset 13343 09705e6df648
parent 12032 9971885a2b0d
child 13309 055caa28cd04
permissions -rwxr-xr-x
stable to default
     1 #!/bin/sh
     2 ##  The contents of this file are subject to the Mozilla Public License
     3 ##  Version 1.1 (the "License"); you may not use this file except in
     4 ##  compliance with the License. You may obtain a copy of the License
     5 ##  at http://www.mozilla.org/MPL/
     6 ##
     7 ##  Software distributed under the License is distributed on an "AS IS"
     8 ##  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
     9 ##  the License for the specific language governing rights and
    10 ##  limitations under the License.
    11 ##
    12 ##  The Original Code is RabbitMQ.
    13 ##
    14 ##  The Initial Developer of the Original Code is GoPivotal, Inc.
    15 ##  Copyright (c) 2007-2014 GoPivotal, Inc.  All rights reserved.
    16 ##
    17 
    18 # Get default settings with user overrides for (RABBITMQ_)<var_name>
    19 # Non-empty defaults should be set in rabbitmq-env
    20 . `dirname $0`/rabbitmq-env
    21 
    22 ##--- Set environment vars RABBITMQ_<var_name> to defaults if not set
    23 
    24 [ "x" = "x$RABBITMQ_NODENAME" ] && RABBITMQ_NODENAME=${NODENAME}
    25 [ "x" = "x$RABBITMQ_CTL_ERL_ARGS" ] && RABBITMQ_CTL_ERL_ARGS=${CTL_ERL_ARGS}
    26 
    27 ##--- End of overridden <var_name> variables
    28 
    29 exec ${ERL_DIR}erl \
    30     -pa "${RABBITMQ_HOME}/ebin" \
    31     -noinput \
    32     -hidden \
    33     ${RABBITMQ_CTL_ERL_ARGS} \
    34     -sname rabbitmqctl$$ \
    35     -boot "${CLEAN_BOOT_FILE}" \
    36     -s rabbit_control_main \
    37     -nodename $RABBITMQ_NODENAME \
    38     -extra "$@"