summaryrefslogtreecommitdiff
path: root/net/rabbitmq/files
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2014-01-10 09:29:04 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2014-01-10 09:29:04 +0000
commit43ce726eaefd4ed488570ff185991c5e9945f74c (patch)
treec59e63b35451d6932dc6c191dabe22049ba2e8b9 /net/rabbitmq/files
parent- Convert to USES=tk (diff)
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,[]]}}}
Notes
Notes: svn path=/head/; revision=339337
Diffstat (limited to 'net/rabbitmq/files')
-rw-r--r--net/rabbitmq/files/rabbitmq.in1
1 files changed, 1 insertions, 0 deletions
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