1Mojolicious::Command::dUaseemronC(o3n)tributed Perl DocuMmoejnotlaitciioonus::Command::daemon(3)
2
3
4
6 Mojolicious::Command::daemon - Daemon command
7
9 Usage: APPLICATION daemon [OPTIONS]
10
11 ./myapp.pl daemon
12 ./myapp.pl daemon -m production -l http://*:8080
13 ./myapp.pl daemon -l http://127.0.0.1:8080 -l https://[::]:8081
14 ./myapp.pl daemon -l 'https://*:443?cert=./server.crt&key=./server.key'
15 ./myapp.pl daemon -l http+unix://%2Ftmp%2Fmyapp.sock
16
17 Options:
18 -b, --backlog <size> Listen backlog size, defaults to
19 SOMAXCONN
20 -c, --clients <number> Maximum number of concurrent
21 connections, defaults to 1000
22 -h, --help Show this summary of available options
23 --home <path> Path to home directory of your
24 application, defaults to the value of
25 MOJO_HOME or auto-detection
26 -i, --inactivity-timeout <seconds> Inactivity timeout, defaults to the
27 value of MOJO_INACTIVITY_TIMEOUT or 15
28 -l, --listen <location> One or more locations you want to
29 listen on, defaults to the value of
30 MOJO_LISTEN or "http://*:3000"
31 -m, --mode <name> Operating mode for your application,
32 defaults to the value of
33 MOJO_MODE/PLACK_ENV or "development"
34 -p, --proxy Activate reverse proxy support,
35 defaults to the value of
36 MOJO_REVERSE_PROXY
37 -r, --requests <number> Maximum number of requests per
38 keep-alive connection, defaults to 100
39
41 Mojolicious::Command::daemon starts applications with the
42 Mojo::Server::Daemon backend.
43
44 This is a core command, that means it is always enabled and its code a
45 good example for learning to build new commands, you're welcome to fork
46 it.
47
48 See "COMMANDS" in Mojolicious::Commands for a list of commands that are
49 available by default.
50
52 Mojolicious::Command::daemon inherits all attributes from
53 Mojolicious::Command and implements the following new ones.
54
55 description
56 my $description = $daemon->description;
57 $daemon = $daemon->description('Foo');
58
59 Short description of this command, used for the command list.
60
61 usage
62 my $usage = $daemon->usage;
63 $daemon = $daemon->usage('Foo');
64
65 Usage information for this command, used for the help screen.
66
68 Mojolicious::Command::daemon inherits all methods from
69 Mojolicious::Command and implements the following new ones.
70
71 run
72 $daemon->run(@ARGV);
73
74 Run this command.
75
77 Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.
78
79
80
81perl v5.28.0 2018-05-08 Mojolicious::Command::daemon(3)