/[webpac2]/Webpacus/script/webpacus_fastcgi.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /Webpacus/script/webpacus_fastcgi.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 377 - (show annotations)
Sat Jan 21 23:27:05 2006 UTC (18 years, 3 months ago) by dpavlin
File MIME type: text/plain
File size: 1657 byte(s)
 r422@llin:  dpavlin | 2006-01-21 23:40:54 +0100
 Catalyst upgrade to 5.62

1 #!/usr/bin/perl -w
2
3 BEGIN { $ENV{CATALYST_ENGINE} ||= 'FastCGI' }
4
5 use strict;
6 use Getopt::Long;
7 use Pod::Usage;
8 use FindBin;
9 use lib "$FindBin::Bin/../lib";
10 use Webpacus;
11
12 my $help = 0;
13 my ( $listen, $nproc, $pidfile, $manager, $detach );
14
15 GetOptions(
16 'help|?' => \$help,
17 'listen|l=s' => \$listen,
18 'nproc|n=i' => \$nproc,
19 'pidfile|p=s' => \$pidfile,
20 'manager|M=s' => \$manager,
21 'daemon|d' => \$detach,
22 );
23
24 pod2usage(1) if $help;
25
26 Webpacus->run(
27 $listen,
28 { nproc => $nproc,
29 pidfile => $pidfile,
30 manager => $manager,
31 detach => $detach,
32 }
33 );
34
35 1;
36
37 =head1 NAME
38
39 webpacus_fastcgi.pl - Catalyst FastCGI
40
41 =head1 SYNOPSIS
42
43 webpacus_fastcgi.pl [options]
44
45 Options:
46 -? -help display this help and exits
47 -l -listen Socket path to listen on
48 (defaults to standard input)
49 can be HOST:PORT, :PORT or a
50 filesystem path
51 -n -nproc specify number of processes to keep
52 to serve requests (defaults to 1,
53 requires -listen)
54 -p -pidfile specify filename for pid file
55 (requires -listen)
56 -d -daemon daemonize (requires -listen)
57 -M -manager specify alternate process manager
58 (FCGI::ProcManager sub-class)
59 or empty string to disable
60
61 =head1 DESCRIPTION
62
63 Run a Catalyst application as fastcgi.
64
65 =head1 AUTHOR
66
67 Sebastian Riedel, C<sri@oook.de>
68
69 =head1 COPYRIGHT
70
71 Copyright 2004 Sebastian Riedel. All rights reserved.
72
73 This library is free software, you can redistribute it and/or modify
74 it under the same terms as Perl itself.
75
76 =cut

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26