summaryrefslogtreecommitdiff
path: root/src/pbx_sup.erl
blob: 9dd7f606823e06d4d59537cc54c6f04b1c30efdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-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(tda, worker) ]
	  } }.