From d91e49a5a5dfb25e6593af6f84e788e8e3d09d99 Mon Sep 17 00:00:00 2001 From: Feng Lee Date: Thu, 16 Feb 2017 11:35:33 +0800 Subject: [PATCH] Change the restart strategy of the top supervisor --- src/emqttd_sup.erl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/emqttd_sup.erl b/src/emqttd_sup.erl index 59ffde2ea..e38d20d65 100644 --- a/src/emqttd_sup.erl +++ b/src/emqttd_sup.erl @@ -1,5 +1,5 @@ %%-------------------------------------------------------------------- -%% Copyright (c) 2012-2017 Feng Lee . +%% Copyright (c) 2013-2017 EMQ Enterprise, Inc. (http://emqtt.io) %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -14,11 +14,12 @@ %% limitations under the License. %%-------------------------------------------------------------------- -%% @doc emqttd top supervisor. -module(emqttd_sup). -behaviour(supervisor). +-author("Feng Lee "). + -include("emqttd.hrl"). %% API @@ -50,5 +51,5 @@ start_child(Mod, Type) when is_atom(Mod) and is_atom(Type) -> %%-------------------------------------------------------------------- init([]) -> - {ok, {{one_for_all, 10, 3600}, []}}. + {ok, {{one_for_all, 0, 1}, []}}.