Current section

Files

Jump to
shackle src shackle_sup.erl
Raw

src/shackle_sup.erl

-module(shackle_sup).
-include("shackle_internal.hrl").
%% internal
-export([
start_link/0
]).
-behaviour(supervisor).
-export([
init/1
]).
%% internal
-spec start_link() ->
{ok, pid()}.
start_link() ->
supervisor:start_link({local, ?SUPERVISOR}, ?SUPERVISOR, []).
%% supervisor callbacks
-spec init([]) ->
{ok, {{one_for_one, 5, 10}, [supervisor:child_spec()]}}.
init([]) ->
shackle_pool:init(),
shackle_status:init(),
{ok, {{one_for_one, 5, 10}, [?CHILD(shackle_ets_manager)]}}.