1Mojolicious::Command::pUrseefrorCko(n3t)ributed Perl DocMuomjeonltiactiioouns::Command::prefork(3)
2
3
4

NAME

6       Mojolicious::Command::prefork - Pre-fork command
7

SYNOPSIS

9         Usage: APPLICATION prefork [OPTIONS]
10
11           ./myapp.pl prefork
12           ./myapp.pl prefork -m production -l http://*:8080
13           ./myapp.pl prefork -l http://127.0.0.1:8080 -l https://[::]:8081
14           ./myapp.pl prefork -l 'https://*:443?cert=./server.crt&key=./server.key'
15           ./myapp.pl prefork -l http+unix://%2Ftmp%2Fmyapp.sock -w 12
16
17         Options:
18           -a, --accepts <number>               Number of connections for workers to
19                                                accept, defaults to 10000
20           -b, --backlog <size>                 Listen backlog size, defaults to
21                                                SOMAXCONN
22           -c, --clients <number>               Maximum number of concurrent
23                                                connections, defaults to 1000
24           -G, --graceful-timeout <seconds>     Graceful timeout, defaults to 120.
25           -I, --heartbeat-interval <seconds>   Heartbeat interval, defaults to 5
26           -H, --heartbeat-timeout <seconds>    Heartbeat timeout, defaults to 50
27           -h, --help                           Show this summary of available options
28               --home <path>                    Path to home directory of your
29                                                application, defaults to the value of
30                                                MOJO_HOME or auto-detection
31           -i, --inactivity-timeout <seconds>   Inactivity timeout, defaults to the
32                                                value of MOJO_INACTIVITY_TIMEOUT or 30
33           -k, --keep-alive-timeout <seconds>   Keep-alive timeout, defaults to the
34                                                value of MOJO_KEEP_ALIVE_TIMEOUT or 5
35           -l, --listen <location>              One or more locations you want to
36                                                listen on, defaults to the value of
37                                                MOJO_LISTEN or "http://*:3000"
38           -m, --mode <name>                    Operating mode for your application,
39                                                defaults to the value of
40                                                MOJO_MODE/PLACK_ENV or "development"
41           -P, --pid-file <path>                Path to process id file, defaults to
42                                                "prefork.pid" in a temporary directory
43           -p, --proxy                          Activate reverse proxy support,
44                                                defaults to the value of
45                                                MOJO_REVERSE_PROXY
46           -r, --requests <number>              Maximum number of requests per
47                                                keep-alive connection, defaults to 100
48           -s, --spare <number>                 Temporarily spawn up to this number of
49                                                additional workers, defaults to 2
50           -w, --workers <number>               Number of workers, defaults to 4
51

DESCRIPTION

53       Mojolicious::Command::prefork starts applications with the
54       Mojo::Server::Prefork backend.
55
56       This is a core command, that means it is always enabled and its code a
57       good example for learning to build new commands, you're welcome to fork
58       it.
59
60       See "COMMANDS" in Mojolicious::Commands for a list of commands that are
61       available by default.
62

ATTRIBUTES

64       Mojolicious::Command::prefork inherits all attributes from
65       Mojolicious::Command and implements the following new ones.
66
67   description
68         my $description = $prefork->description;
69         $prefork        = $prefork->description('Foo');
70
71       Short description of this command, used for the command list.
72
73   usage
74         my $usage = $prefork->usage;
75         $prefork  = $prefork->usage('Foo');
76
77       Usage information for this command, used for the help screen.
78

METHODS

80       Mojolicious::Command::prefork inherits all methods from
81       Mojolicious::Command and implements the following new ones.
82
83   run
84         $prefork->run(@ARGV);
85
86       Run this command.
87

SEE ALSO

89       Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.
90
91
92
93perl v5.32.0                      2020-07-28  Mojolicious::Command::prefork(3)
Impressum