module Supervisor
Provides an environment for hosting a supervisor which can monitor multiple applications.
Definitions
def name
The name of the supervisor
Signature
-
returns
String
Implementation
def name
"supervisor"
end
def ipc_path
The IPC path to use for communication with the supervisor.
Signature
-
returns
String
Implementation
def ipc_path
::File.expand_path("supervisor.ipc", root)
end
def endpoint
The endpoint the supervisor will bind to.
Signature
-
returns
::IO::Endpoint::Generic
Implementation
def endpoint
::IO::Endpoint.unix(ipc_path)
end
def service_class
The service class to use for the supervisor.
Signature
-
returns
Class
Implementation
def service_class
::Falcon::Service::Supervisor
end