scripts/rabbitmqctl
author Simon MacMullen <simon@rabbitmq.com>
Tue, 27 Jan 2015 13:05:31 +0000
changeset 14379 268888648ff6
parent 14077 8e779ac31cfe
parent 14090 3f7c77cdafd8
permissions -rwxr-xr-x
stable to default
     1 #!/bin/sh -e
     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 # We specify Mnesia dir and sasl error logger since some actions
    23 # (e.g. forget_cluster_node --offline) require us to impersonate the
    24 # real node.
    25 RABBITMQ_USE_LONGNAME=${RABBITMQ_USE_LONGNAME} \
    26 exec ${ERL_DIR}erl \
    27     -pa "${RABBITMQ_HOME}/ebin" \
    28     -noinput \
    29     -hidden \
    30     ${RABBITMQ_CTL_ERL_ARGS} \
    31     -boot "${CLEAN_BOOT_FILE}" \
    32     -sasl errlog_type error \
    33     -mnesia dir "\"${RABBITMQ_MNESIA_DIR}\"" \
    34     -s rabbit_control_main \
    35     -nodename $RABBITMQ_NODENAME \
    36     -extra "$@"