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',
68 $self->_run_application;
71 sub _application_args {
76 nproc => $self->nproc,
77 pidfile => $self->pidfile,
78 manager => $self->manager,
79 detach => $self->detach,
80 keep_stderr => $self->keep_stderr,
85 __PACKAGE__->meta->make_immutable;
89 Catalyst::Script::FastCGI - The FastCGI Catalyst Script
101 Catalyst Contributors, see Catalyst.pm
105 This library is free software. You can redistribute it and/or modify it under
106 the same terms as Perl itself.