/[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

Annotation of /Webpacus/script/webpacus_fastcgi.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 223 - (hide annotations)
Mon Dec 5 19:15:06 2005 UTC (18 years, 5 months ago) by dpavlin
File MIME type: text/plain
File size: 1660 byte(s)
 r11544@llin:  dpavlin | 2005-12-05 16:49:09 +0100
 re-created scripts using catalyst.pl -nonew -scripts Webpacus

1 dpavlin 83 #!/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 dpavlin 223 my ( $listen, $nproc, $pidfile, $manager, $detach );
14 dpavlin 83
15     GetOptions(
16     'help|?' => \$help,
17     'listen|l=s' => \$listen,
18     'nproc|n=i' => \$nproc,
19     'pidfile|p=s' => \$pidfile,
20 dpavlin 223 'manager|M=s' => \$manager,
21     'daemon|d' => \$detach,
22 dpavlin 83 );
23    
24     pod2usage(1) if $help;
25    
26     Webpacus->run(
27     $listen,
28     { nproc => $nproc,
29     pidfile => $pidfile,
30 dpavlin 223 manager => $manager,
31     detach => $detach,
32 dpavlin 83 }
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 dpavlin 223 -d -daemon daemonize (requires -listen)
57     -M -manager specify alternate process manager
58     (FCGI::ProcessManager sub-class)
59     or empty string to disable
60 dpavlin 83
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