Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 27 lines (18 sloc) 0.776 kB
8b5965c @videlalvaro first import
authored
1 -module(rabbitmq_chat_sup).
2
3 -behaviour(supervisor).
4
5 %% API
6 -export([start_link/0]).
7
8 %% Supervisor callbacks
9 -export([init/1]).
10
11 %% ===================================================================
12 %% API functions
13 %% ===================================================================
14
15 start_link() ->
16 supervisor:start_link({local, ?MODULE}, ?MODULE, []).
17
18 %% ===================================================================
19 %% Supervisor callbacks
20 %% ===================================================================
21
22 init([]) ->
6169ca4 @videlalvaro adds configuration options
authored
23 {ok, Port} = application:get_env(rabbitmq_chat, http_port),
8b5965c @videlalvaro first import
authored
24 Rest = {rabbitmq_chat_rest, {rabbitmq_chat_rest, start_link, [Port]}, permanent, 5000, worker, [rabbitmq_chat_rest]},
25 {ok, { {one_for_one, 5, 10}, [Rest]} }.
26
Something went wrong with that request. Please try again.