Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a worker to the supervisor template

Make the supervisor template generated by rebar actually do something.
Only lightly tested.
  • Loading branch information...
commit 5b5be301b3bbe63a488224eb4107c7749f970dcd 1 parent 6cccb7a
Michael Santos authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/perv_sup.erl
4 src/perv_sup.erl
View
@@ -53,5 +53,7 @@ start_link() ->
%% ===================================================================
init([]) ->
- {ok, { {one_for_one, 5, 10}, []} }.
+ {ok, { {one_for_one, 5, 10}, [
+ {tag1, {perv, start_link, []}, permanent, 10000, worker, [perv]}
+ ]} }.
Please sign in to comment.
Something went wrong with that request. Please try again.