|
@@ -1,5 +1,5 @@
|
|
|
%%--------------------------------------------------------------------
|
|
%%--------------------------------------------------------------------
|
|
|
-%% Copyright (c) 2012-2017 Feng Lee <feng@emqtt.io>.
|
|
|
|
|
|
|
+%% Copyright (c) 2013-2017 EMQ Enterprise, Inc. (http://emqtt.io)
|
|
|
%%
|
|
%%
|
|
|
%% Licensed under the Apache License, Version 2.0 (the "License");
|
|
%% Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
%% you may not use this file except in compliance with the License.
|
|
%% you may not use this file except in compliance with the License.
|
|
@@ -14,11 +14,12 @@
|
|
|
%% limitations under the License.
|
|
%% limitations under the License.
|
|
|
%%--------------------------------------------------------------------
|
|
%%--------------------------------------------------------------------
|
|
|
|
|
|
|
|
-%% @doc emqttd top supervisor.
|
|
|
|
|
-module(emqttd_sup).
|
|
-module(emqttd_sup).
|
|
|
|
|
|
|
|
-behaviour(supervisor).
|
|
-behaviour(supervisor).
|
|
|
|
|
|
|
|
|
|
+-author("Feng Lee <feng@emqtt.io>").
|
|
|
|
|
+
|
|
|
-include("emqttd.hrl").
|
|
-include("emqttd.hrl").
|
|
|
|
|
|
|
|
%% API
|
|
%% API
|
|
@@ -50,5 +51,5 @@ start_child(Mod, Type) when is_atom(Mod) and is_atom(Type) ->
|
|
|
%%--------------------------------------------------------------------
|
|
%%--------------------------------------------------------------------
|
|
|
|
|
|
|
|
init([]) ->
|
|
init([]) ->
|
|
|
- {ok, {{one_for_all, 10, 3600}, []}}.
|
|
|
|
|
|
|
+ {ok, {{one_for_all, 0, 1}, []}}.
|
|
|
|
|
|