Packages

A search deployment helper library. Aims to easy deployment and monitoring of distributed Manticore & Sphinx in a Linux environment

Current section

Files

Jump to
khafra_search lib khafra supervisor.ex
Raw

lib/khafra/supervisor.ex

defmodule Khafra.Supervisor do
use Supervisor
def start_link() do
Supervisor.start_link(__MODULE__, :ok, [])
end
def init(:ok) do
_ = Application.ensure_all_started(:timex)
children = [
worker(Khafra.Scheduler, []),
supervisor(SimpleStatEx.StatSupervisor, [])
]
Supervisor.init(children, strategy: :one_for_one)
end
end