File 27fcfd890380f08ddab86daa55cf262a2151a09b.patch of Package rabbitmq-server

From 27fcfd890380f08ddab86daa55cf262a2151a09b Mon Sep 17 00:00:00 2001
From: Alexey Lebedeff <alebedev@mirantis.com>
Date: Tue, 10 Nov 2015 18:38:19 +0300
Subject: [PATCH] Delay rabbit_mgmt_db initialization

It could prevent rabbit start in case when erlang nodes were
accidentially connected beforehand (e.g. by net_adm:ping/1).

Closes #81
---
 src/rabbit_mgmt_sup_sup.erl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/rabbit_mgmt_sup_sup.erl b/src/rabbit_mgmt_sup_sup.erl
index 6758a5d3..b5639597 100644
--- a/plugins-src/rabbitmq-management/src/rabbit_mgmt_sup_sup.erl
+++ b/plugins-src/rabbitmq-management/src/rabbit_mgmt_sup_sup.erl
@@ -57,7 +57,8 @@ start_child() -> supervisor2:start_child( ?MODULE, sup()).
 %%----------------------------------------------------------------------------
 
 init([]) ->
-    {ok, {{one_for_one, 0, 1}, [sup()]}}.
+    timer:apply_after(0, ?MODULE, start_child, []),
+    {ok, {{one_for_one, 0, 1}, []}}.
 
 sup() ->
     {rabbit_mgmt_sup, {rabbit_mgmt_sup, start_link, []},
openSUSE Build Service is sponsored by