summaryrefslogtreecommitdiff
path: root/src/pbx_sup.erl
blob: e363d5efba17d77fdd8e5ebf4e45e3f6ac930dfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-module(pbx_sup).

-behaviour(supervisor).

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

-define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}).

start_link() ->
	supervisor:start_link({local, ?MODULE}, ?MODULE, []).

init([]) ->
	{ok, {{one_for_one, 5, 10}, [?CHILD(pbx_conn, worker)]}}.