Fix restart logic and add watchdog

This commit is contained in:
Ulf Wiger
2025-10-23 22:22:59 +02:00
parent 847ffc810a
commit 1f6066705c
8 changed files with 180 additions and 10 deletions
+3 -2
View File
@@ -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 },