diff options
author | Paul Jones <paulj@lshift.net> | 2009-07-29 12:50:02 +0100 |
---|---|---|
committer | Paul Jones <paulj@lshift.net> | 2009-07-29 12:50:02 +0100 |
commit | 00ac346afc648ce6a4df3e34d726a13a0206e0fc (patch) | |
tree | d42d2a44a318e3d516a56a5bd4d75c637a6ef01e /scripts/rabbitmqctl | |
parent | 4f8af96dcb459b0a637b3ad88256af0a00b8c91d (diff) | |
download | rabbitmq-server-00ac346afc648ce6a4df3e34d726a13a0206e0fc.tar.gz |
Renamed activate-plugins to rabbitmq-activate-plugins; changed scripts to use rabbitmq-env to source paths instead of embedding the logic themselves
Diffstat (limited to 'scripts/rabbitmqctl')
-rwxr-xr-x | scripts/rabbitmqctl | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/scripts/rabbitmqctl b/scripts/rabbitmqctl index 88206abc..9c45e73d 100755 --- a/scripts/rabbitmqctl +++ b/scripts/rabbitmqctl @@ -30,24 +30,12 @@ ## Contributor(s): ______________________________________. ## -SCRIPT_PATH="$0" -while [ -h "$SCRIPT_PATH" ] ; do - ls=`ls -ld "$SCRIPT_PATH"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - SCRIPT_PATH="$link" - else - SCRIPT_PATH="`dirname "$SCRIPT_PATH"`/$link" - fi -done -SCRIPT_DIR=`dirname $SCRIPT_PATH` - -[ -f /etc/rabbitmq/rabbitmq.conf ] && . /etc/rabbitmq/rabbitmq.conf +. `dirname $0`/rabbitmq-env [ "x" = "x$RABBITMQ_CTL_ERL_ARGS" ] && RABBITMQ_CTL_ERL_ARGS=${CTL_ERL_ARGS} exec erl \ - -pa "${SCRIPT_DIR}/../ebin" \ + -pa "${RABBITMQ_HOME}/ebin" \ -noinput \ -hidden \ ${RABBITMQ_CTL_ERL_ARGS} \ |