X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FScript%2FFastCGI.pm;h=00299954046428e6d13afedbf152198d5605f9bf;hb=c821df216d6d7e7e0386516e43c0c09fd4a295e7;hp=977bcd6a158d2ed76d0cb8f3ed9e798d8039802b;hpb=ad8b4c91d55aed722e199001632029005eeca60d;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Script/FastCGI.pm b/lib/Catalyst/Script/FastCGI.pm index 977bcd6..0029995 100644 --- a/lib/Catalyst/Script/FastCGI.pm +++ b/lib/Catalyst/Script/FastCGI.pm @@ -1,10 +1,10 @@ package Catalyst::Script::FastCGI; - -BEGIN { $ENV{CATALYST_ENGINE} ||= 'FastCGI' } use Moose; use MooseX::Types::Moose qw/Str Bool Int/; use namespace::autoclean; +sub _plack_engine_name { 'FCGI' } + with 'Catalyst::ScriptRole'; has listen => ( @@ -17,7 +17,7 @@ has listen => ( has pidfile => ( traits => [qw(Getopt)], - cmd_aliases => 'pid', + cmd_aliases => [qw/pid p/], isa => Str, is => 'ro', documentation => 'Specify a pidfile', @@ -55,14 +55,6 @@ has nproc => ( documentation => 'Specify a number of child processes', ); -has detach => ( - traits => [qw(Getopt)], - cmd_aliases => 'det', - isa => Bool, - is => 'ro', - documentation => 'Detach this FastCGI process', -); - sub _application_args { my ($self) = shift; return ( @@ -71,7 +63,7 @@ sub _application_args { nproc => $self->nproc, pidfile => $self->pidfile, manager => $self->manager, - detach => $self->detach, + detach => $self->daemon, keep_stderr => $self->keeperr, } );