1 package Catalyst::Script::FastCGI;
3 BEGIN { $ENV{CATALYST_ENGINE} ||= 'FastCGI' }
8 use MooseX::Types::Moose qw/Str Bool Int/;
9 use namespace::autoclean;
11 with 'MooseX::Getopt';
14 traits => [qw(Getopt)],
18 documentation => qq{ display this help and exits },
22 traits => [qw(Getopt)],
27 documentation => qq{ specify a different listening port }
31 traits => [qw(Getopt)],
35 documentation => qq{ specify a pidfile }
41 traits => [qw(Getopt)],
43 documentation => qq{ daemonize }
49 traits => [qw(Getopt)],
51 documentation => qq{ use a different FastCGI manager }
55 traits => [qw(Getopt)],
59 documentation => qq{ log STDERR }
63 traits => [qw(Getopt)],
67 documentation => qq{ specify an nproc }
71 traits => [qw(Getopt)],
75 documentation => qq{ detach this FastCGI process }
81 traits => [qw(NoGetopt)],
89 pod2usage() if $self->help;
91 Class::MOP::load_class($app);
95 nproc => $self->nproc,
96 pidfile => $self->pidfile,
97 manager => $self->manager,
98 detach => $self->detach,
99 keep_stderr => $self->keep_stderr,
105 __PACKAGE__->meta->make_immutable;