blob: 0b296d42e35bb9bd9dcc62eb6787d68a8382a93f [file] [log] [blame]
-module(couch_stats_sup).
-behaviour(supervisor).
-export([
start_link/0,
init/1
]).
-define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
{ok, {
{one_for_one, 5, 10}, [
?CHILD(couch_stats_stats_collector, worker),
?CHILD(couch_stats_process_tracker, worker)
]
}}.