farmbot_os/farmbot_os/platform/host/system_tasks.ex

20 lines
456 B
Elixir

defmodule FarmbotOS.Platform.Host.SystemTasks do
@moduledoc "Host implementation for Farmbot.System."
@behaviour FarmbotOS.System
def reboot() do
Application.stop(:farmbot)
Application.stop(:farmbot_ext)
Application.stop(:farmbot_core)
Application.ensure_all_started(:farmbot_core)
Application.ensure_all_started(:farmbot_ext)
Application.ensure_all_started(:farmbot)
end
def shutdown() do
System.halt()
end
end