Permalink
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...
1 parent 6cccb7a commit 5b5be301b3bbe63a488224eb4107c7749f970dcd @msantos committed Sep 17, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 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]}
+ ]} }.

0 comments on commit 5b5be30

Please sign in to comment.