diff options
Diffstat (limited to 'apps/rexi/src/rexi_sup.erl')
-rw-r--r-- | apps/rexi/src/rexi_sup.erl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/rexi/src/rexi_sup.erl b/apps/rexi/src/rexi_sup.erl new file mode 100644 index 00000000..3a518e7b --- /dev/null +++ b/apps/rexi/src/rexi_sup.erl @@ -0,0 +1,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]}}. |