3 -behaviour (supervisor
).
6 -export([start_link
/0]).
8 %% supervisor callbacks
11 %-=====================================================================-
13 %-=====================================================================-
15 supervisor:start_link({local
, ?MODULE
}, ?MODULE
, []).
17 %-=====================================================================-
18 %- supervisor callbacks -
19 %-=====================================================================-
23 { one_for_one
, 10, 10 },
25 { lwes_channel_manager
, % child spec id
26 { lwes_channel_manager
, start_link
, [] },% child function to call
27 permanent
, % always restart
28 2000, % time to wait for child stop
29 worker
, % type of child
30 [ lwes_channel_manager
] % modules used by child
33 lwes_channel_sup
, % child spec id
34 { lwes_channel_sup
, start_link
, []}, % child function to call
35 permanent
, % always restart
36 2000, % time to wait for child stop
37 supervisor
, % type of child
38 [ lwes_channel_sup
] % modules used by child
40 { lwes_esf_validator
, % child spec id
41 { lwes_esf_validator
, start_link
, [] }, % child function to call
42 permanent
, % always restart
43 2000, % time to wait for child stop
44 worker
, % type of child
45 [ lwes_esf_validator
] % modules used by child
51 %-=====================================================================-
53 %-=====================================================================-
56 %-=====================================================================-
58 %-=====================================================================-
60 -include_lib ("eunit/include/eunit.hrl").
65 {ok
, Pid
} = start_link(),
74 ?
_assertEqual (true
, true
)