summaryrefslogtreecommitdiff
path: root/src/pbx_sup.erl
blob: 4f753d160bd2838382b429dc7e2af740765178fa (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(tapi, worker),
	    ?CHILD(counter, worker)
	   ]}}.