Permalink
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (16 sloc) 526 Bytes
-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]}
]}}.