diff options
| author | Michael Klishin <michael@clojurewerkz.org> | 2016-04-18 15:52:54 -0700 |
|---|---|---|
| committer | Michael Klishin <michael@clojurewerkz.org> | 2016-04-18 15:52:54 -0700 |
| commit | c15a4adf07441c7cd6f3819c296c192f4a54c5e4 (patch) | |
| tree | 1f28b6135cd6aebd8a792e41034a8e6d5070bf8d /scripts/rabbitmq-env | |
| parent | 4affec5cb796ecf54e8517312025f5804864d205 (diff) | |
| parent | 57c4a7af72268b8cf88efd2ec774616dd14aa31f (diff) | |
| download | rabbitmq-server-git-c15a4adf07441c7cd6f3819c296c192f4a54c5e4.tar.gz | |
Merge branch 'stable' into rabbitmq-auth-backend-ldap-13
Diffstat (limited to 'scripts/rabbitmq-env')
| -rw-r--r-- | scripts/rabbitmq-env | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/scripts/rabbitmq-env b/scripts/rabbitmq-env index dffed035ea..35239620ca 100644 --- a/scripts/rabbitmq-env +++ b/scripts/rabbitmq-env @@ -65,20 +65,15 @@ RABBITMQ_HOME="$(rmq_realpath "${RABBITMQ_SCRIPTS_DIR}/..")" ## Common defaults SERVER_ERL_ARGS="+P 1048576" -# 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 /etc/rabbitmq/rabbitmq.conf -- " - echo "location has moved to ${CONF_ENV_FILE}" -fi - # We save the current value of $RABBITMQ_PID_FILE in case it was set by # an init script. If $CONF_ENV_FILE overrides it again, we must ignore # it and warn the user. saved_RABBITMQ_PID_FILE=$RABBITMQ_PID_FILE ## Get configuration variables from the configure environment file -[ -f ${CONF_ENV_FILE} ] && . ${CONF_ENV_FILE} || true +[ "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 |
