Skip to content

Commit d8c66d1

Browse files
committed
Make rabbit_vhost_sup permanent so it can be restarted once without
bringing down the whole supervision tree and rabbit app
1 parent 9bb3636 commit d8c66d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rabbit_vhost_sup_wrapper.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ init([VHost]) ->
3636
{ok, {{one_for_all, 1, 10000000},
3737
[{rabbit_vhost_sup,
3838
{rabbit_vhost_sup_wrapper, start_vhost_sup, [VHost]},
39-
intrinsic, infinity, supervisor,
39+
permanent, infinity, supervisor,
4040
[rabbit_vhost_sup]}]}}.
4141

4242
start_vhost_sup(VHost) ->
@@ -49,4 +49,4 @@ start_vhost_sup(VHost) ->
4949
{ok, Pid};
5050
Other ->
5151
Other
52-
end.
52+
end.

0 commit comments

Comments
 (0)