mirror of
https://github.com/correl/rebar.git
synced 2024-11-27 19:19:53 +00:00
15 lines
393 B
Erlang
15 lines
393 B
Erlang
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
|
|
%% ex: ts=4 sw=4 ft=erlang et
|
|
-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]}}.
|