summaryrefslogtreecommitdiff
path: root/src/chttpd_sup.erl
blob: c710ec37a6b9d0d66ec9ef0b5e37d933c57b2644 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-module(chttpd_sup).
-behaviour(supervisor).
-export([init/1]).

-export([start_link/1]).

-include("chttpd.hrl").

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]}}.