From 43ce726eaefd4ed488570ff185991c5e9945f74c Mon Sep 17 00:00:00 2001 From: Jimmy Olgeni Date: Fri, 10 Jan 2014 09:29:04 +0000 Subject: 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,[]]}}} --- net/rabbitmq/Makefile | 1 + net/rabbitmq/files/rabbitmq.in | 1 + 2 files changed, 2 insertions(+) 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 -- cgit v1.2.3