Current section

Files

Jump to
foil src foil_sup.erl
Raw

src/foil_sup.erl

-module(foil_sup).
-include("foil.hrl").
-export([
start_link/0
]).
-behaviour(supervisor).
-export([
init/1
]).
%% public
-spec start_link() ->
{ok, pid()}.
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
%% supervisor callbacks
-spec init([]) ->
{ok, {{one_for_one, 5, 10}, [supervisor:child_spec()]}}.
init([]) ->
{ok, {{one_for_one, 5, 10}, [?CHILD(?SERVER)]}}.