2019-03-11 09:26:56 -06:00
|
|
|
defmodule FarmbotCore.BotState.Supervisor do
|
|
|
|
use Supervisor
|
|
|
|
|
|
|
|
def start_link(args) do
|
|
|
|
Supervisor.start_link(__MODULE__, args, [name: __MODULE__])
|
|
|
|
end
|
|
|
|
|
|
|
|
def init([]) do
|
2019-04-09 14:25:24 -06:00
|
|
|
children = [
|
2019-03-11 09:26:56 -06:00
|
|
|
FarmbotCore.BotState,
|
2019-10-02 14:05:01 -06:00
|
|
|
FarmbotCore.BotState.FileSystem,
|
|
|
|
FarmbotCore.BotState.SchedulerUsageReporter
|
2019-03-11 09:26:56 -06:00
|
|
|
]
|
2019-04-09 14:25:24 -06:00
|
|
|
Supervisor.init(children, [strategy: :one_for_all])
|
2019-03-11 09:26:56 -06:00
|
|
|
end
|
2019-04-09 14:25:24 -06:00
|
|
|
end
|