Current section
Files
Jump to
Current section
Files
src/watch_sup.erl
-module(watch_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-define(SERVER, ?MODULE).
start_link() ->
supervisor:start_link({local, ?SERVER}, ?MODULE, []).
%% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules}
init([]) ->
{ok, { {one_for_all, 0, 1}, [
{watch_server, {watch_server, start_link, []},
permanent, brutal_kill, worker, [watch_server]}
]} }.