Plack::Handler::FCGI::Engine::ProcManager - A process manager for Plack::Handler::FCGI::Engine


FCGI-Engine documentation Contained in the FCGI-Engine distribution.

Index


Code Index:

NAME

Top

Plack::Handler::FCGI::Engine::ProcManager - A process manager for Plack::Handler::FCGI::Engine

DESCRIPTION

Top

A subclass of FCGI::Engine::ProcManager that is compatiable with Plack::Handler::FCGI::Engine and Plack::Handler::FCGI.

BUGS

Top

All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.

AUTHOR

Top

Stevan Little <stevan.little@iinteractive.com>

COPYRIGHT AND LICENSE

Top


FCGI-Engine documentation Contained in the FCGI-Engine distribution.

package Plack::Handler::FCGI::Engine::ProcManager;
use Moose;

our $VERSION   = '0.18';
our $AUTHORITY = 'cpan:STEVAN';

extends 'FCGI::Engine::ProcManager';

has 'pidfile' => (
    init_arg => 'pid_fname',
    is       => 'rw',
    isa      => 'MooseX::Daemonize::Pid::File',
    coerce   => 1,
);

# FCGI::ProcManager compat

sub pm_manage        { (shift)->manage( @_ )        }
sub pm_pre_dispatch  { (shift)->pre_dispatch( @_ )  }
sub pm_post_dispatch { (shift)->post_dispatch( @_ ) }

sub notify {
    my ($self, $msg) = @_;
    $msg =~ s/\s*$/\n/;
    print STDERR "FastCGIEngine: " . $self->role() . " (pid $$): " . $msg;
}

__PACKAGE__->meta->make_immutable;

no Moose; 1;

__END__