]> review.fuel-infra Code Review - packages/trusty/rabbitmq-server.git/blob
9fe96ca71734a50ca92d9ec1ccc1d9d9d8575987
[packages/trusty/rabbitmq-server.git] /
1 %% Copyright (c) 2011-2012 Basho Technologies, Inc.  All Rights Reserved.
2 %%
3 %% This file is provided to you under the Apache License,
4 %% Version 2.0 (the "License"); you may not use this file
5 %% except in compliance with the License.  You may obtain
6 %% a copy of the License at
7 %%
8 %%   http://www.apache.org/licenses/LICENSE-2.0
9 %%
10 %% Unless required by applicable law or agreed to in writing,
11 %% software distributed under the License is distributed on an
12 %% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13 %% KIND, either express or implied.  See the License for the
14 %% specific language governing permissions and limitations
15 %% under the License.
16
17 %% @doc A supervisor for monitoring webmachine_logger_handler_watcher processes.
18
19 %% @private
20
21 -module(webmachine_logger_watcher_sup).
22
23 -behaviour(supervisor).
24
25 %% API
26 -export([start_link/0]).
27
28 %% Callbacks
29 -export([init/1]).
30
31 start_link() ->
32     supervisor:start_link({local, ?MODULE}, ?MODULE, []).
33
34 init([]) ->
35     {ok, {{simple_one_for_one, 10, 60},
36             [
37                 {webmachine_logger_watcher, {webmachine_logger_watcher, start_link, []},
38                         transient, 5000, worker, [webmachine_logger_watcher]}
39                 ]}}.