diff options
author | Matthias Radestock <matthias@lshift.net> | 2008-12-10 18:05:51 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@lshift.net> | 2008-12-10 18:05:51 +0000 |
commit | 74fc138adb24802ba22746b0b9edc2b8fdaffaf5 (patch) | |
tree | dfe34f462ef375814185b2ba2b01b3bcbdbcf5e1 /scripts/rabbitmq-multi | |
parent | 03753d9eb11fe9cdf37dfe10a990ccf17a4aa5fe (diff) | |
parent | ce7b45fa876212da95dcdbdbc5d2b9899e9680fa (diff) | |
download | rabbitmq-server-74fc138adb24802ba22746b0b9edc2b8fdaffaf5.tar.gz |
merge bug19914 into default
Diffstat (limited to 'scripts/rabbitmq-multi')
-rwxr-xr-x | scripts/rabbitmq-multi | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/scripts/rabbitmq-multi b/scripts/rabbitmq-multi index 8c889a1a..84985e90 100755 --- a/scripts/rabbitmq-multi +++ b/scripts/rabbitmq-multi @@ -30,24 +30,36 @@ ## Contributor(s): ______________________________________. ## -[ "x" = "x$NODENAME" ] && NODENAME=rabbit -[ "x" = "x$NODE_IP_ADDRESS" ] && NODE_IP_ADDRESS=0.0.0.0 -[ "x" = "x$NODE_PORT" ] && NODE_PORT=5672 +[ -f /etc/default/rabbitmq ] && . /etc/default/rabbitmq -ERL_ARGS= -SCRIPT_HOME=$(dirname $0) +[ "x" = "x$RABBITMQ_NODENAME" ] && RABBITMQ_NODENAME=${NODENAME} +[ "x" = "x$RABBITMQ_NODENAME" ] && RABBITMQ_NODENAME=rabbit +[ "x" = "x$RABBITMQ_NODE_IP_ADDRESS" ] && RABBITMQ_NODE_IP_ADDRESS=${NODE_IP_ADDRESS} +[ "x" = "x$RABBITMQ_NODE_IP_ADDRESS" ] && RABBITMQ_NODE_IP_ADDRESS=0.0.0.0 +[ "x" = "x$RABBITMQ_NODE_PORT" ] && RABBITMQ_NODE_PORT=${NODE_PORT} +[ "x" = "x$RABBITMQ_NODE_PORT" ] && RABBITMQ_NODE_PORT=5672 +[ "x" = "x$RABBITMQ_SCRIPT_HOME" ] && RABBITMQ_SCRIPT_HOME=${SCRIPT_HOME} +[ "x" = "x$RABBITMQ_SCRIPT_HOME" ] && RABBITMQ_SCRIPT_HOME=$(dirname $0) +[ "x" = "x$RABBITMQ_PIDS_FILE" ] && RABBITMQ_PIDS_FILE=${PIDS_FILE} +[ "x" = "x$RABBITMQ_PIDS_FILE" ] && RABBITMQ_PIDS_FILE=/var/lib/rabbitmq/pids +[ "x" = "x$RABBITMQ_MULTI_ERL_ARGS" ] && RABBITMQ_MULTI_ERL_ARGS=${MULTI_ERL_ARGS} +[ "x" = "x$RABBITMQ_MULTI_ERL_ARGS" ] && RABBITMQ_MULTI_ERL_ARGS= +[ "x" = "x$RABBITMQ_MULTI_START_ARGS" ] && RABBITMQ_MULTI_START_ARGS=${MULTI_START_ARGS} +[ "x" = "x$RABBITMQ_MULTI_START_ARGS" ] && RABBITMQ_MULTI_START_ARGS= -[ "x" = "x$PIDS_FILE" ] && PIDS_FILE=/var/lib/rabbitmq/pids - -export NODENAME NODE_IP_ADDRESS NODE_PORT SCRIPT_HOME PIDS_FILE +export \ + RABBITMQ_NODENAME \ + RABBITMQ_NODE_IP_ADDRESS \ + RABBITMQ_NODE_PORT \ + RABBITMQ_SCRIPT_HOME \ + RABBITMQ_PIDS_FILE exec erl \ -pa "`dirname $0`/../ebin" \ -noinput \ -hidden \ - ${ERL_ARGS} \ + ${RABBITMQ_MULTI_ERL_ARGS} \ -sname rabbitmq_multi$$ \ -s rabbit_multi \ - ${START_ARGS} \ + ${RABBITMQ_MULTI_START_ARGS} \ -extra "$@" - |