mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
16 lines
349 B
Erlang
16 lines
349 B
Erlang
|
-module(dummy_sup).
|
||
|
-behaviour(supervisor).
|
||
|
|
||
|
-export([start_link/0]).
|
||
|
-export([init/1]).
|
||
|
|
||
|
start_link() ->
|
||
|
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
|
||
|
|
||
|
init([]) ->
|
||
|
Dummy = {dummy_server,
|
||
|
{dummy_server, start_link, []},
|
||
|
permanent, 5000, worker, [dummy_server]},
|
||
|
|
||
|
{ok, {{one_for_one, 10, 10}, [Dummy]}}.
|