forked from basho/rebar_riak_core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathriak_core_sup.erl
More file actions
29 lines (21 loc) · 795 Bytes
/
riak_core_sup.erl
File metadata and controls
29 lines (21 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
-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]}}.