diff options
Diffstat (limited to 'scripts/rabbitmq-multi')
-rwxr-xr-x | scripts/rabbitmq-multi | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/rabbitmq-multi b/scripts/rabbitmq-multi index 73502ec2..d8b0f074 100755 --- a/scripts/rabbitmq-multi +++ b/scripts/rabbitmq-multi @@ -30,6 +30,8 @@ ## Contributor(s): ______________________________________. ## NODENAME=rabbit +NODE_IP_ADDRESS=0.0.0.0 +NODE_PORT=5672 SCRIPT_HOME=$(dirname $0) PIDS_FILE=/var/lib/rabbitmq/pids MULTI_ERL_ARGS= @@ -37,6 +39,16 @@ MULTI_START_ARGS= . `dirname $0`/rabbitmq-env +if [ "x" = "x$RABBITMQ_NODE_IP_ADDRESS" ] +then + if [ "x" != "x$RABBITMQ_NODE_PORT" ] + then RABBITMQ_NODE_IP_ADDRESS=${NODE_IP_ADDRESS} + fi +else + if [ "x" = "x$RABBITMQ_NODE_PORT" ] + then RABBITMQ_NODE_PORT=${NODE_PORT} + fi +fi [ "x" = "x$RABBITMQ_NODENAME" ] && RABBITMQ_NODENAME=${NODENAME} [ "x" = "x$RABBITMQ_SCRIPT_HOME" ] && RABBITMQ_SCRIPT_HOME=${SCRIPT_HOME} [ "x" = "x$RABBITMQ_PIDS_FILE" ] && RABBITMQ_PIDS_FILE=${PIDS_FILE} @@ -45,6 +57,8 @@ MULTI_START_ARGS= export \ RABBITMQ_NODENAME \ + RABBITMQ_NODE_IP_ADDRESS \ + RABBITMQ_NODE_PORT \ RABBITMQ_SCRIPT_HOME \ RABBITMQ_PIDS_FILE |