Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 44 lines (31 sloc) 1.452 kb
21abc5b @klacke Initial revision
authored
1 %%%----------------------------------------------------------------------
2 %%% File : yaws_sup.erl
3 %%% Author : Claes Wikstrom <klacke@bluetail.com>
4 %%% Purpose :
5 %%% Created : 16 Jan 2002 by Claes Wikstrom <klacke@bluetail.com>
6 %%%----------------------------------------------------------------------
7
8 -module(yaws_sup).
9 -author('klacke@bluetail.com').
10
11
12 -behaviour(supervisor).
13
14 %% External exports
15 -export([start_link/0]).
16
17 %% supervisor callbacks
18 -export([init/1]).
19
20 %%%----------------------------------------------------------------------
21 %%% API
22 %%%----------------------------------------------------------------------
23 start_link() ->
24 supervisor:start_link({local, ?MODULE}, ?MODULE, []).
25
26 %%%----------------------------------------------------------------------
27 %%% Callback functions from supervisor
28 %%%----------------------------------------------------------------------
29
30 %%----------------------------------------------------------------------
31 %%----------------------------------------------------------------------
32 init([]) ->
80771c8 @klacke cache_refresh to 0 if debug, added a cookie_session-server for persistan...
authored
33
34 Sess = {yaws_session_server, {yaws_session_server, start_link, []},
35 permanent, 5000, worker, [yaws_session_server]},
36
21abc5b @klacke Initial revision
authored
37 YawsLog = {yaws_log, {yaws_log, start_link, []},
38 permanent, 5000, worker, [yaws_log]},
39
40 YawsServ = {yaws_server, {yaws_server, start_link, []},
41 permanent, 5000, worker, [yaws_server]},
42
80771c8 @klacke cache_refresh to 0 if debug, added a cookie_session-server for persistan...
authored
43 {ok,{{one_for_all,4,30}, [YawsLog, YawsServ, Sess]}}.
Something went wrong with that request. Please try again.