17 lines
384 B
Elixir
17 lines
384 B
Elixir
defmodule FarmbotCore.BotState.Supervisor do
|
|
use Supervisor
|
|
|
|
def start_link(args) do
|
|
Supervisor.start_link(__MODULE__, args, [name: __MODULE__])
|
|
end
|
|
|
|
def init([]) do
|
|
children = [
|
|
FarmbotCore.BotState,
|
|
FarmbotCore.BotState.FileSystem,
|
|
FarmbotCore.BotState.SchedulerUsageReporter
|
|
]
|
|
Supervisor.init(children, [strategy: :one_for_all])
|
|
end
|
|
end
|