Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8e250d9bba
Fetching contributors…

Cannot retrieve contributors at this time

file 25 lines (20 sloc) 0.474 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
%%
%% This is a supervisor for oauth_mochiweb_server.
%%
-module(oauth_mochiweb).

-behaviour(supervisor).

-export([start/0, start_link/0, init/1]).

start() ->
  {ok, Pid} = start_link(), unlink(Pid).

start_link() ->
  supervisor:start_link({local, ?MODULE}, ?MODULE, []).

init([]) ->
  {ok, {{one_for_one, 3, 10}, [
    {web,
      {oauth_mochiweb_server, start, [[{ip, "0.0.0.0"}, {port, 8000}]]},
      permanent,
      5000,
      worker,
      dynamic
    }
  ]}}.
Something went wrong with that request. Please try again.