1 %%%-------------------------------------------------------------------
2 %%% File : dirwatcher_sup.erl
3 %%% Author : Jesper Louis Andersen <jlouis@succubus.local.domain>
4 %%% License : See COPYING
5 %%% Description : Supervise the dirwatcher.
7 %%% Created : 11 Jul 2007 by Jesper Louis Andersen <jlouis@succubus.local.domain>
8 %%%-------------------------------------------------------------------
9 -module(etorrent_dirwatcher_sup
).
11 -behaviour(supervisor
).
14 -export([start_link
/0]).
16 %% Supervisor callbacks
19 -define(SERVER
, ?MODULE
).
21 %%====================================================================
23 %%====================================================================
24 %%--------------------------------------------------------------------
25 %% Function: start_link() -> {ok,Pid} | ignore | {error,Error}
26 %% Description: Starts the supervisor
27 %%--------------------------------------------------------------------
29 supervisor:start_link({local
, ?SERVER
}, ?MODULE
, []).
32 DirWatcher
= {etorrent_dirwatcher
,
33 {etorrent_dirwatcher
, start_link
, []},
34 permanent
, 2000, worker
, [etorrent_dirwatcher
]},
35 {ok
,{{one_for_one
,1,60}, [DirWatcher
]}}.
37 %%====================================================================
39 %%====================================================================