GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Feersum::Runner(3) User Contributed Perl Documentation Feersum::Runner(3)

Feersum::Runner - feersum script core

    use Feersum::Runner;
    my $runner = Feersum::Runner->new(
        listen => 'localhost:5000',
        pre_fork => 0,
        quiet => 1,
        app_file => 'app.feersum',
    );
    $runner->run($feersum_app);

Much like Plack::Runner, but with far fewer options.

"Feersum::Runner->new(%params)"
Returns a Feersum::Runner singleton. Params are only applied for the first invocation.
listen
Listen on this TCP socket ("host:port" format).
pre_fork
Fork this many worker processes.

The fork is run immediately at startup and after the app is loaded (i.e. in the "run()" method).

quiet
Don't be so noisy. (default: on)
app_file
Load this filename as a native feersum app.
"$runner->run($feersum_app)"
Run Feersum with the specified app code reference. Note that this is not a PSGI app, but a native Feersum app.
"$runner->assign_request_handler($subref)"
For sub-classes to override, assigns an app handler. (e.g. Plack::Handler::Feersum). By default, this assigns a Feersum-native (and not PSGI) handler.
"$runner->quit()"
Initiate a graceful shutdown. A signal handler for SIGQUIT will call this method.

Jeremy Stashewsky, "stash@cpan.org"

Copyright (C) 2010 by Jeremy Stashewsky & Socialtext Inc.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.

2020-12-05 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.