diff options
Diffstat (limited to 'src/membership_sup.erl')
-rw-r--r-- | src/membership_sup.erl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/membership_sup.erl b/src/membership_sup.erl new file mode 100644 index 00000000..81b6562a --- /dev/null +++ b/src/membership_sup.erl @@ -0,0 +1,24 @@ +-module(membership_sup). +-author('brad@cloudant.com'). + +-behaviour(supervisor). + +%% API +-export([start_link/0]). + +%% Supervisor callbacks +-export([init/1]). + +-define(SERVER, ?MODULE). + +start_link() -> + supervisor:start_link(?MODULE, []). + +init(_Args) -> + Membership = {membership, + {mem3, start_link, []}, + permanent, + 1000, + worker, + [mem3]}, + {ok, {{one_for_one,10,1}, [Membership]}}. |