summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-03-09 15:39:38 -0500
committerAdam Kocoloski <adam@cloudant.com>2010-03-09 15:39:38 -0500
commitc9f601a5d2950ca47eefeb3336993cd65c77456a (patch)
tree25fe7294053e82ab514db44df47c0ca901516c58 /src
parentd645998e35762b78fc845afdda68236fb7c28b26 (diff)
trust VM to start our dependent apps
Diffstat (limited to 'src')
-rw-r--r--src/dynomite_app.erl22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/dynomite_app.erl b/src/dynomite_app.erl
index 6ee0b978..2243af4c 100644
--- a/src/dynomite_app.erl
+++ b/src/dynomite_app.erl
@@ -20,7 +20,6 @@
%% Application callbacks
-export([start/2, stop/1]).
--define(APPS, [crypto,sasl,mochiweb]).
-define(DEFAULT_CLUSTER_URL, "http://localhost:5984/_cluster").
%%====================================================================
@@ -49,9 +48,6 @@ start(_Type, _StartArgs) ->
Args
end,
- % start required apps
- State = start_apps(),
-
% start dynomite supervisor
ok = start_node(),
case dynomite_sup:start_link(PdStartArgs) of
@@ -79,24 +75,6 @@ stop({_, Sup}) ->
%% Internal functions
%%====================================================================
-start_apps() ->
- Fun = fun(App, AccIn) ->
- Result = case application:start(App) of
- ok ->
- App;
- {error, {already_started, App}} ->
- nil;
- _Error ->
- exit(app_start_fail)
- end,
- if
- Result =/= nil -> [App|AccIn];
- true -> AccIn
- end
- end,
- lists:foldl(Fun, [], ?APPS).
-
-
%% @spec start_node() -> ok | {error, Reason}
%% @doc start this node (join to dist. erlang cluster)
start_node() ->