diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-06-30 15:36:54 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-12 01:10:28 -0400 |
commit | 8a09581aa2252f53047fa0e9e95591eaae4556c9 (patch) | |
tree | f2537fab023cb66f71cb527d639a63fae48c7a6e /src/membership_app.erl | |
parent | e0acb18d4565c59e7b88eea494a3ee9009546c22 (diff) |
clean up membership application callback mod
Diffstat (limited to 'src/membership_app.erl')
-rw-r--r-- | src/membership_app.erl | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/membership_app.erl b/src/membership_app.erl index 7f050fe5..df0f4fee 100644 --- a/src/membership_app.erl +++ b/src/membership_app.erl @@ -1,20 +1,11 @@ -module(membership_app). --author('brad@cloudant.com'). - -behaviour(application). - --include("membership.hrl"). - -%% Application callbacks -export([start/2, stop/1]). -%% @doc start required apps, join cluster, start supervisor -start(_Type, _StartArgs) -> - couch_api:create_db(<<"dbs">>, []), % all nodes have local 'dbs' db - % start membership supervisor +start(_Type, []) -> + DbName = couch_config:get("membership", "db", "dbs"), + couch_server:create(list_to_binary(DbName), []), membership_sup:start_link(). -stop({_, Sup}) -> - ?LOG_ALERT("membership application stopped", []), - exit(Sup, normal), +stop([]) -> ok. |