public
Created

  • Download Gist
test_sup.erl
Erlang
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
-module(test_sup).
-behaviour(supervisor).
 
%% Supervisor callbacks
-export([init/1, start_child/0, start_link/0]).
 
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
 
start_child() ->
supervisor:start_child(?MODULE, []).
 
init([]) ->
{ok, {{simple_one_for_one, 5, 1}, [
{test, {test, start_link, []}, permanent, brutal_kill, worker, [test]}
]}}.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.