blob: 494382667fe4320e163e5fbca20116daea581ec7 [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_aggregator, worker),
?CHILD(couch_stats_process_tracker, worker)
]
}}.