1%% This Source Code Form is subject to the terms of the Mozilla Public 2%% License, v. 2.0. If a copy of the MPL was not distributed with this 3%% file, You can obtain one at https://mozilla.org/MPL/2.0/. 4%% 5%% Copyright (c) 2017-2021 VMware, Inc. or its affiliates. All rights reserved. 6%% 7 8-module(rabbit_vhost_sup). 9 10-include_lib("rabbit_common/include/rabbit.hrl"). 11 12%% Each vhost gets an instance of this supervisor that supervises 13%% message stores and queues (via rabbit_amqqueue_sup_sup). 14-behaviour(supervisor2). 15-export([init/1]). 16-export([start_link/1]). 17 18start_link(VHost) -> 19 supervisor2:start_link(?MODULE, [VHost]). 20 21init([_VHost]) -> 22 {ok, {{one_for_all, 0, 1}, []}}. 23