Permalink
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 324 Bytes
-module(ybed_sup).
-behaviour(supervisor).
%% API
-export([start_link/0]).
%% Supervisor callbacks
-export([init/1]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
YBed = {ybed, {ybed,start,[]},
temporary,2000,worker,[ybed]},
{ok,{{one_for_all,0,1}, [YBed]}}.