summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGerhard Lazu <gerhard@users.noreply.github.com>2017-08-22 20:17:30 +0200
committerGitHub <noreply@github.com>2017-08-22 20:17:30 +0200
commit4e94918a957bfee5905e75c89c14e2e7e9b74600 (patch)
treec92c58b155a00fc1555f4b9fd43c86e5e9ccfac0 /scripts
parentb02a53eebde065e51e0dc9c4041756950003b0a2 (diff)
parentc89e694abddc7df23ec1da180ddfbfe4909e97ab (diff)
downloadrabbitmq-server-git-4e94918a957bfee5905e75c89c14e2e7e9b74600.tar.gz
Merge pull request #1339 from rabbitmq/rabbitmq-server-1338
Read rabbitmq-env.conf a bit earlier to pick up two variables
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/rabbitmq-env9
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/rabbitmq-env b/scripts/rabbitmq-env
index 52fb4034b0..8cc3af56ae 100755
--- a/scripts/rabbitmq-env
+++ b/scripts/rabbitmq-env
@@ -76,6 +76,10 @@ RABBITMQ_HOME="$(rmq_realpath "${RABBITMQ_SCRIPTS_DIR}/..")"
## Set defaults
. ${RABBITMQ_SCRIPTS_DIR}/rabbitmq-defaults
+## Get configuration variables from the configure environment file
+[ "x" = "x$RABBITMQ_CONF_ENV_FILE" ] && RABBITMQ_CONF_ENV_FILE=${CONF_ENV_FILE}
+[ -f ${RABBITMQ_CONF_ENV_FILE} ] && . ${RABBITMQ_CONF_ENV_FILE} || true
+
DEFAULT_SCHEDULER_BIND_TYPE="db"
[ "x" = "x$RABBITMQ_SCHEDULER_BIND_TYPE" ] && RABBITMQ_SCHEDULER_BIND_TYPE=${DEFAULT_SCHEDULER_BIND_TYPE}
@@ -90,11 +94,6 @@ SERVER_ERL_ARGS="+P 1048576 +t 5000000 +stbt $RABBITMQ_SCHEDULER_BIND_TYPE +zdbb
# it and warn the user.
saved_RABBITMQ_PID_FILE=$RABBITMQ_PID_FILE
-## Get configuration variables from the configure environment file
-[ "x" = "x$RABBITMQ_CONF_ENV_FILE" ] && RABBITMQ_CONF_ENV_FILE=${CONF_ENV_FILE}
-
-[ -f ${RABBITMQ_CONF_ENV_FILE} ] && . ${RABBITMQ_CONF_ENV_FILE} || true
-
if [ "$saved_RABBITMQ_PID_FILE" -a \
"$saved_RABBITMQ_PID_FILE" != "$RABBITMQ_PID_FILE" ]; then
echo "WARNING: RABBITMQ_PID_FILE was already set by the init script to:" 1>&2