Skip to content

Instantly share code, notes, and snippets.

@jkvor
Created December 23, 2010 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkvor/752330 to your computer and use it in GitHub Desktop.
Save jkvor/752330 to your computer and use it in GitHub Desktop.
-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]}
]}}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment