Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (21 sloc) 795 Bytes
-module({{appid}}_sup).
-behaviour(supervisor).
%% API
-export([start_link/0]).
%% Supervisor callbacks
-export([init/1]).
%% ===================================================================
%% API functions
%% ===================================================================
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
%% ===================================================================
%% Supervisor callbacks
%% ===================================================================
init(_Args) ->
VMaster = { {{appid}}_vnode_master,
{riak_core_vnode_master, start_link, [{{appid}}_vnode]},
permanent, 5000, worker, [riak_core_vnode_master]},
{ ok,
{ {one_for_one, 5, 10},
[VMaster]}}.