diff options
author | olgeni <olgeni@FreeBSD.org> | 2014-01-10 17:29:04 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2014-01-10 17:29:04 +0800 |
commit | 0032e8437393df2087b50312eab44c8674e56515 (patch) | |
tree | c59e63b35451d6932dc6c191dabe22049ba2e8b9 /net/rabbitmq | |
parent | cb0aa0be394fd94c4dce28488574eca4686f4223 (diff) | |
download | freebsd-ports-gnome-0032e8437393df2087b50312eab44c8674e56515.tar.gz freebsd-ports-gnome-0032e8437393df2087b50312eab44c8674e56515.tar.zst freebsd-ports-gnome-0032e8437393df2087b50312eab44c8674e56515.zip |
Reset ERL_LIBS before running RabbitMQ.
ERL_LIBS was inherited from the current environment, and it may
contain paths to older versions of amqp_client, which may not be
compatible with the current RabbitMQ management plugin.
As a result, RabbitMQ would not start when the management plugin was
enabled, with this error:
{could_not_start,amqp_client,
{{supervisor_data,{invalid_strategy,simple_one_for_one_terminate}},
{amqp_client,start,[normal,[]]}}}
Diffstat (limited to 'net/rabbitmq')
-rw-r--r-- | net/rabbitmq/Makefile | 1 | ||||
-rw-r--r-- | net/rabbitmq/files/rabbitmq.in | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/net/rabbitmq/Makefile b/net/rabbitmq/Makefile index 76009b2f1f6a..da86321c1107 100644 --- a/net/rabbitmq/Makefile +++ b/net/rabbitmq/Makefile @@ -3,6 +3,7 @@ PORTNAME= rabbitmq PORTVERSION= 3.2.2 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.rabbitmq.com/releases/rabbitmq-server/v${PORTVERSION}/ DISTNAME= ${PORTNAME}-server-${PORTVERSION} diff --git a/net/rabbitmq/files/rabbitmq.in b/net/rabbitmq/files/rabbitmq.in index a24dd82a9c80..04f17b8215dd 100644 --- a/net/rabbitmq/files/rabbitmq.in +++ b/net/rabbitmq/files/rabbitmq.in @@ -36,6 +36,7 @@ extra_commands="rotate_logs status" rabbitmq_start() { HOME=/var/db/rabbitmq + unset ERL_LIBS su -m ${rabbitmq_user} \ -c "sh -c \"${rabbitmq_server} -detached\"" # Grab pid (it appears that parsing the output of |