summaryrefslogtreecommitdiff
path: root/scripts/rabbitmq-env
diff options
context:
space:
mode:
authorSteve Powell <steve@rabbitmq.com>2012-02-24 11:19:00 +0000
committerSteve Powell <steve@rabbitmq.com>2012-02-24 11:19:00 +0000
commit3d9667e5c6f4565a233ff9b242f9583e4e887311 (patch)
treef6b889dc2f170e37c5e9e986a9924eb9296eb282 /scripts/rabbitmq-env
parent9c57bdf81f336be9ed79f61e92efc982490d52e3 (diff)
downloadrabbitmq-server-git-3d9667e5c6f4565a233ff9b242f9583e4e887311.tar.gz
Get generic-unix sys-defaults to check for global locations
(and rename rabbitmq-locations to rabbitmq-sys-defaults).
Diffstat (limited to 'scripts/rabbitmq-env')
-rwxr-xr-xscripts/rabbitmq-env12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/rabbitmq-env b/scripts/rabbitmq-env
index 3eb6952431..80e34e813a 100755
--- a/scripts/rabbitmq-env
+++ b/scripts/rabbitmq-env
@@ -36,13 +36,15 @@ RABBITMQ_HOME="${SCRIPT_DIR}/.."
[ "x" = "x$HOSTNAME" ] && HOSTNAME=`env hostname`
NODENAME=rabbit@${HOSTNAME%%.*}
-## Get system default locations
-. ${SCRIPT_DIR}/rabbitmq-locations
+## Get system defaults
+. ${SCRIPT_DIR}/rabbitmq-sys-defaults
-## Get configuration variables from the configure environment file
-if [ -f ${OLD_CONF_ENV_FILE} ] && \
+# warn about old rabbitmq.conf file, if no new one
+if [ -f /etc/rabbitmq/rabbitmq.conf ] && \
[ ! -f ${CONF_ENV_FILE} ] ; then
- echo -n "WARNING: ignoring ${OLD_CONF_ENV_FILE} -- "
+ echo -n "WARNING: ignoring /etc/rabbitmq/rabbitmq.conf -- "
echo "location has moved to ${CONF_ENV_FILE}"
fi
+
+## Get configuration variables from the configure environment file
[ -f ${CONF_ENV_FILE} ] && . ${CONF_ENV_FILE}