diff options
Diffstat (limited to 'script/bookmarks_fastcgi.pl')
-rwxr-xr-x | script/bookmarks_fastcgi.pl | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/script/bookmarks_fastcgi.pl b/script/bookmarks_fastcgi.pl index 546d552..77748fd 100755 --- a/script/bookmarks_fastcgi.pl +++ b/script/bookmarks_fastcgi.pl @@ -10,17 +10,27 @@ use lib "$FindBin::Bin/../lib"; use Bookmarks; my $help = 0; -my ( $listen, $nproc ); +my ( $listen, $nproc, $pidfile, $manager, $detach ); GetOptions( - 'help|?' => \$help, - 'listen|l=s' => \$listen, - 'nproc|n=i' => \$nproc, + 'help|?' => \$help, + 'listen|l=s' => \$listen, + 'nproc|n=i' => \$nproc, + 'pidfile|p=s' => \$pidfile, + 'manager|M=s' => \$manager, + 'daemon|d' => \$detach, ); pod2usage(1) if $help; -Bookmarks->run( $listen, { nproc => $nproc } ); +Bookmarks->run( + $listen, + { nproc => $nproc, + pidfile => $pidfile, + manager => $manager, + detach => $detach, + } +); 1; @@ -39,7 +49,14 @@ bookmarks_fastcgi.pl [options] can be HOST:PORT, :PORT or a filesystem path -n -nproc specify number of processes to keep - to serve requests (defaults to 1) + to serve requests (defaults to 1, + requires -listen) + -p -pidfile specify filename for pid file + (requires -listen) + -d -daemon daemonize (requires -listen) + -M -manager specify alternate process manager + (FCGI::ProcManager sub-class) + or empty string to disable =head1 DESCRIPTION |