diff options
author | Emile Joubert <emile@rabbitmq.com> | 2010-06-10 12:03:26 +0100 |
---|---|---|
committer | Emile Joubert <emile@rabbitmq.com> | 2010-06-10 12:03:26 +0100 |
commit | a724c4ce046ac103658b205e00a838542c9ff2dc (patch) | |
tree | d4328a30559077cb2bdf66d1d0b5ba4531997342 /scripts/rabbitmq-server | |
parent | 6f0c1c01e078b134db75dde900e28def217908d3 (diff) | |
download | rabbitmq-server-a724c4ce046ac103658b205e00a838542c9ff2dc.tar.gz |
Use hostnames in node names
Diffstat (limited to 'scripts/rabbitmq-server')
-rwxr-xr-x | scripts/rabbitmq-server | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/rabbitmq-server b/scripts/rabbitmq-server index ccdfc401..0ee43649 100755 --- a/scripts/rabbitmq-server +++ b/scripts/rabbitmq-server @@ -56,7 +56,8 @@ else then RABBITMQ_NODE_PORT=${DEFAULT_NODE_PORT} fi fi -[ "x" = "x$RABBITMQ_NODENAME" ] && RABBITMQ_NODENAME=${NODENAME} +[ "x" = "x$HOSTNAME" ] && HOSTNAME=`env hostname -s` +[ "x" = "x$RABBITMQ_NODENAME" ] && RABBITMQ_NODENAME=${NODENAME}@${HOSTNAME%%.*} [ "x" = "x$RABBITMQ_SERVER_ERL_ARGS" ] && RABBITMQ_SERVER_ERL_ARGS=${SERVER_ERL_ARGS} [ "x" = "x$RABBITMQ_CLUSTER_CONFIG_FILE" ] && RABBITMQ_CLUSTER_CONFIG_FILE=${CLUSTER_CONFIG_FILE} [ "x" = "x$RABBITMQ_CONFIG_FILE" ] && RABBITMQ_CONFIG_FILE=${CONFIG_FILE} |