Fix restart logic and add watchdog
This commit is contained in:
+3
-2
@@ -15,10 +15,11 @@ start_link() ->
|
||||
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
|
||||
|
||||
init([]) ->
|
||||
ChildSpecs = [ worker(gmhc_server)
|
||||
ChildSpecs = [ worker(gmhc_watchdog)
|
||||
, worker(gmhc_server)
|
||||
, worker(gmhc_handler)
|
||||
, supervisor(gmhc_connectors_sup) ],
|
||||
SupFlags = #{ strategy => one_for_one
|
||||
SupFlags = #{ strategy => rest_for_one
|
||||
, intensity => 1
|
||||
, period => 5
|
||||
, auto_shutdown => never },
|
||||
|
||||
Reference in New Issue
Block a user