3 BEGIN { $ENV{CATALYST_ENGINE
} ||= 'FastCGI' }
10 use lib
"$FindBin::Bin/../lib";
14 my ( $listen, $nproc, $pidfile, $manager, $detach, $keep_stderr );
18 'listen|l=s' => \
$listen,
19 'nproc|n=i' => \
$nproc,
20 'pidfile|p=s' => \
$pidfile,
21 'manager|M=s' => \
$manager,
22 'daemon|d' => \
$detach,
23 'keeperr|e' => \
$keep_stderr,
26 pod2usage
(1) if $help;
34 keep_stderr
=> $keep_stderr,
42 blog_fastcgi.pl - Catalyst FastCGI
46 blog_fastcgi.pl [options]
49 -? -help display this help and exits
50 -l -listen Socket path to listen on
51 (defaults to standard input)
52 can be HOST:PORT, :PORT or a
54 -n -nproc specify number of processes to keep
55 to serve requests (defaults to 1,
57 -p -pidfile specify filename for pid file
59 -d -daemon daemonize (requires -listen)
60 -M -manager specify alternate process manager
61 (FCGI::ProcManager sub-class)
62 or empty string to disable
63 -e -keeperr send error messages to STDOUT, not
68 Run a Catalyst application as fastcgi.
72 Catalyst Contributors, see Catalyst.pm
76 This library is free software, you can redistribute it and/or modify
77 it under the same terms as Perl itself.