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 30
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 15
33           -l, --listen <location>              One or more locations you want to
34                                                listen on, defaults to the value of
35                                                MOJO_LISTEN or "http://*:3000"
36           -m, --mode <name>                    Operating mode for your application,
37                                                defaults to the value of
38                                                MOJO_MODE/PLACK_ENV or "development"
39           -P, --pid-file <path>                Path to process id file, defaults to
40                                                "prefork.pid" in a temporary directory
41           -p, --proxy                          Activate reverse proxy support,
42                                                defaults to the value of
43                                                MOJO_REVERSE_PROXY
44           -r, --requests <number>              Maximum number of requests per
45                                                keep-alive connection, defaults to 100
46           -s, --spare <number>                 Temporarily spawn up to this number of
47                                                additional workers, defaults to 2
48           -w, --workers <number>               Number of workers, defaults to 4
49

DESCRIPTION

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

ATTRIBUTES

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

METHODS

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

SEE ALSO

87       Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.
88
89
90
91perl v5.28.0                      2018-05-08  Mojolicious::Command::prefork(3)
Impressum