diff options
Diffstat (limited to 'src/chttpd_sup.erl')
-rw-r--r-- | src/chttpd_sup.erl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/chttpd_sup.erl b/src/chttpd_sup.erl new file mode 100644 index 00000000..c710ec37 --- /dev/null +++ b/src/chttpd_sup.erl @@ -0,0 +1,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]}}. |