defmodule ExMobileDevice.Diagnostics.Supervisor do @moduledoc false use Supervisor alias ExMobileDevice.Diagnostics.{Monitor, RestartSupervisor} def start_link(args) do Supervisor.start_link(__MODULE__, args, name: __MODULE__) end @impl true def init(_args) do children = [ {DynamicSupervisor, name: RestartSupervisor, strategy: :one_for_one}, {Monitor, []} ] Supervisor.init(children, strategy: :rest_for_one) end end