summaryrefslogtreecommitdiff
path: root/apps/chttpd/src/chttpd_sup.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-08-18 14:22:46 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-18 14:22:46 -0400
commit89affb0a7cb9769641ed2cdd45544b26748ca93e (patch)
tree9e73f3920f815f5a9ee92928448cff633d7ab710 /apps/chttpd/src/chttpd_sup.erl
parent80a42af43128e6750407952938d722a3ce4c1c99 (diff)
parente1dda6bc6219d7ac33ea75d56b9c02f5063b4787 (diff)
Add 'apps/chttpd/' from commit 'e1dda6bc6219d7ac33ea75d56b9c02f5063b4787'
git-subtree-dir: apps/chttpd git-subtree-mainline: 80a42af43128e6750407952938d722a3ce4c1c99 git-subtree-split: e1dda6bc6219d7ac33ea75d56b9c02f5063b4787
Diffstat (limited to 'apps/chttpd/src/chttpd_sup.erl')
-rw-r--r--apps/chttpd/src/chttpd_sup.erl13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/chttpd/src/chttpd_sup.erl b/apps/chttpd/src/chttpd_sup.erl
new file mode 100644
index 00000000..4786350b
--- /dev/null
+++ b/apps/chttpd/src/chttpd_sup.erl
@@ -0,0 +1,13 @@
+-module(chttpd_sup).
+-behaviour(supervisor).
+-export([init/1]).
+
+-export([start_link/1]).
+
+start_link(Args) ->
+ supervisor:start_link({local,?MODULE}, ?MODULE, Args).
+
+init([]) ->
+ Mod = chttpd,
+ Spec = {Mod, {Mod,start_link,[]}, permanent, 100, worker, [Mod]},
+ {ok, {{one_for_one, 3, 10}, [Spec]}}.