summaryrefslogtreecommitdiff
path: root/apps/rexi/src/rexi_sup.erl
blob: 3a518e7bc14b5305f6e94d2fec4ac0909a769d91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-module(rexi_sup).
-behaviour(supervisor).
-export([init/1]).

-export([start_link/1]).

-include_lib("eunit/include/eunit.hrl").

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

init([]) ->
    Mod = rexi_server,
    Spec = {Mod, {Mod,start_link,[]}, permanent, 100, worker, [Mod]},
    {ok, {{one_for_one, 3, 10}, [Spec]}}.