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,[]]}}}
This commit is contained in:
Jimmy Olgeni 2014-01-10 09:29:04 +00:00
parent d420ebc17b
commit 43ce726eae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339337
2 changed files with 2 additions and 0 deletions

View file

@ -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}

View file

@ -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