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) 2007-2021 VMware, Inc. or its affiliates. All rights reserved. 6%% 7 8-module(rabbit_trust_store_sup). 9-behaviour(supervisor). 10-export([start_link/0]). 11-export([init/1]). 12 13-include_lib("rabbit_common/include/rabbit.hrl"). 14 15 16%% ... 17 18start_link() -> 19 supervisor:start_link({local, ?MODULE}, ?MODULE, []). 20 21 22%% ... 23 24init([]) -> 25 Flags = #{strategy => one_for_one, 26 intensity => 10, 27 period => 1}, 28 ChildSpecs = [ 29 #{ 30 id => trust_store, 31 start => {rabbit_trust_store, start_link, []}, 32 restart => permanent, 33 shutdown => timer:seconds(15), 34 type => worker, 35 modules => [rabbit_trust_store] 36 } 37 ], 38 39 {ok, {Flags, ChildSpecs}}. 40