Skip to content
This repository
tree: 22cbbd2f73
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 23 lines (16 sloc) 0.526 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
-module(boss_news_sup).

-behaviour(supervisor).

-export([start_link/0, start_link/1]).

-export([init/1]).

start_link() ->
    start_link([]).

start_link(StartArgs) ->
    supervisor:start_link({global, ?MODULE}, ?MODULE, StartArgs).

init(StartArgs) ->
    {ok, {{one_for_one, 10, 10}, [
                {news_controller, {boss_news_controller, start_link, [StartArgs]},
                    permanent,
                    2000,
                    worker,
                    [boss_news_controller]}
                ]}}.
Something went wrong with that request. Please try again.