1 package Catalyst::Script::FastCGI;
3 BEGIN { $ENV{CATALYST_ENGINE} ||= 'FastCGI' }
5 use MooseX::Types::Moose qw/Str Bool Int/;
6 use namespace::autoclean;
8 with 'Catalyst::ScriptRole';
11 traits => [qw(Getopt)],
15 documentation => 'Specify a listening port/socket',
19 traits => [qw(Getopt)],
23 documentation => 'Specify a pidfile',
27 traits => [qw(Getopt)],
31 documentation => 'Daemonize',
35 traits => [qw(Getopt)],
39 documentation => 'Use a different FastCGI manager', # FIXME
43 traits => [qw(Getopt)],
47 documentation => 'Log STDERR',
51 traits => [qw(Getopt)],
55 documentation => 'Specify an nproc', # FIXME
59 traits => [qw(Getopt)],
63 documentation => 'Detach this FastCGI process',
66 sub _application_args {
71 nproc => $self->nproc,
72 pidfile => $self->pidfile,
73 manager => $self->manager,
74 detach => $self->detach,
75 keep_stderr => $self->keep_stderr,
80 __PACKAGE__->meta->make_immutable;
84 Catalyst::Script::FastCGI - The FastCGI Catalyst Script
96 Catalyst Contributors, see Catalyst.pm
100 This library is free software. You can redistribute it and/or modify it under
101 the same terms as Perl itself.