rebar/inttest/erlc/extra-src/foo_sup.erl

16 lines
393 B
Erlang
Raw Normal View History

2014-05-28 07:05:26 +00:00
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 ft=erlang et
2014-03-05 16:59:35 +00:00
-module(foo_sup).
-behavior(supervisor).
-export([start_link/0,
init/1]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init(_Args) ->
FooChild = {foo,{foo, start_link, []}, permanent, 5000, worker, [foo]},
{ok,{{one_for_all,1,1}, [FooChild]}}.