Supervisor::Controller - Controls the Superviors environment


Supervisor documentation  | view source Contained in the Supervisor distribution.

Index


NAME

Top

Supervisor::Controller - Controls the Superviors environment

SYNOPSIS

Top

 my $supervisor = Supervisor::Controller->new(
     Name => 'supervisor',
     Logfile => 'supervisor.log',
     Processes => Supervisor::ProcessFactory->load(
         Config => 'supervisor.ini',
         Supervisor => 'supervisor'
    )
 );

 $supervisor->run;

 or with the RPC interaction

 my $supervisor = Supervisor::Controller->new(
     Name => 'supervisor',
     Logfile => 'supervisor.log',
     Processes => Supervisor::ProcessFactory->load(
         Config => 'supervisor.ini',
         Supervisor => 'suprvisor',
     ),
     RPC => Supervisor::RPC::Server->new(
         Name => 'rpc',
         Port => 9505,
         Address => 127.0.0.1,
         Logfile => 'supervisor.log'
         Supervisor => 'supervisor',
     )
 );

 $supervisor->run;

DESCRIPTION

Top

This module is designed to control multiple managed processes. It will attempt to keep them running. Additionally it will shut them down when the supervisor is signalled to stop. The following signals will start the shutdown actions:

 INT
 TERM
 HUP
 QUIT
 ABRT

Optionally it can allow external agents access, so that they can interact with the managed processes thru a RPC mechaniasm.

PARAMETERS

Name

The name for the supervisors session.

Logfile

The name of the logfile for the supervisor

Processes

The managed processes that the supervisor will manage.

RPC

The rpc server to interact with and on behalf of the processes.

METHODS

Top

run

This method starts the endless loop.

SEE ALSO

Top

 Supervisor
 Supervisor::Base
 Supervisor::Class
 Supervisor::Constants
 Supervisor::Controller
 Supervisor::Log
 Supervisor::Process
 Supervisor::ProcessFactory
 Supervisor::Session
 Supervisor::Utils
 Supervisor::RPC::Server
 Supervisor::RPC::Client

AUTHOR

Top

Kevin L. Esteb, <kesteb@wsipc.org>

COPYRIGHT AND LICENSE

Top


Supervisor documentation  | view source Contained in the Supervisor distribution.