couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [02/28] git commit: Initial commit of app skeleton
Date Fri, 17 Jan 2014 21:31:05 GMT
Initial commit of app skeleton


Project: http://git-wip-us.apache.org/repos/asf/couchdb-config/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-config/commit/10ae8766
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-config/tree/10ae8766
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-config/diff/10ae8766

Branch: refs/heads/import
Commit: 10ae87664ef6b50ed0346a889d5959796af9ecaa
Parents: 7e325b4
Author: Adam Kocoloski <adam@cloudant.com>
Authored: Tue Oct 23 18:28:48 2012 -0400
Committer: Adam Kocoloski <adam@cloudant.com>
Committed: Wed Oct 24 21:31:49 2012 +0900

----------------------------------------------------------------------
 rebar                    | Bin 100732 -> 119440 bytes
 src/couch_config_sup.erl |  24 ++++++++++++++++++------
 2 files changed, 18 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-config/blob/10ae8766/rebar
----------------------------------------------------------------------
diff --git a/rebar b/rebar
index 30c43ba..ceabf62 100755
Binary files a/rebar and b/rebar differ

http://git-wip-us.apache.org/repos/asf/couchdb-config/blob/10ae8766/src/couch_config_sup.erl
----------------------------------------------------------------------
diff --git a/src/couch_config_sup.erl b/src/couch_config_sup.erl
index d5f073e..638ec79 100644
--- a/src/couch_config_sup.erl
+++ b/src/couch_config_sup.erl
@@ -12,14 +12,26 @@
 
 -module(couch_config_sup).
 -behaviour(supervisor).
+
+%% API
+-export([start_link/0]).
+
+%% Supervisor callbacks
 -export([init/1]).
 
--export([start_link/1]).
+%% Helper macro for declaring children of supervisor
+-define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}).
+
+%% ===================================================================
+%% API functions
+%% ===================================================================
+
+start_link() ->
+    supervisor:start_link({local, ?MODULE}, ?MODULE, []).
 
-start_link(Args) ->
-    supervisor:start_link({local,?MODULE}, ?MODULE, Args).
+%% ===================================================================
+%% Supervisor callbacks
+%% ===================================================================
 
 init([]) ->
-    Mod = chttpd,
-    Spec = {Mod, {Mod,start_link,[]}, permanent, 100, worker, [Mod]},
-    {ok, {{one_for_one, 3, 10}, [Spec]}}.
+    {ok, { {one_for_one, 5, 10}, []} }.


Mime
View raw message