Current section
Files
Jump to
Current section
Files
src/erltls_sup.erl
-module(erltls_sup).
-behaviour(supervisor).
-export([
start_link/0,
init/1
]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
Childrens = [
proccess(erltls_manager, infinity)
],
{ok, { {one_for_one, 10, 1}, Childrens} }.
proccess(Name, WaitForClose) ->
{Name, {Name, start_link, []}, permanent, WaitForClose, worker, [Name]}.