diff options
Diffstat (limited to 'apps/chttpd/src/chttpd_sup.erl')
-rw-r--r-- | apps/chttpd/src/chttpd_sup.erl | 13 |
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]}}. |