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 30
28 -k, --keep-alive-timeout <seconds> Keep-alive timeout, defaults to the
29 value of MOJO_KEEP_ALIVE_TIMEOUT or 5
30 -l, --listen <location> One or more locations you want to
31 listen on, defaults to the value of
32 MOJO_LISTEN or "http://*:3000"
33 -m, --mode <name> Operating mode for your application,
34 defaults to the value of
35 MOJO_MODE/PLACK_ENV or "development"
36 -p, --proxy Activate reverse proxy support,
37 defaults to the value of
38 MOJO_REVERSE_PROXY
39 -r, --requests <number> Maximum number of requests per
40 keep-alive connection, defaults to 100
41
43 Mojolicious::Command::daemon starts applications with the
44 Mojo::Server::Daemon backend.
45
46 This is a core command, that means it is always enabled and its code a
47 good example for learning to build new commands, you're welcome to fork
48 it.
49
50 See "COMMANDS" in Mojolicious::Commands for a list of commands that are
51 available by default.
52
54 Mojolicious::Command::daemon inherits all attributes from
55 Mojolicious::Command and implements the following new ones.
56
57 description
58 my $description = $daemon->description;
59 $daemon = $daemon->description('Foo');
60
61 Short description of this command, used for the command list.
62
63 usage
64 my $usage = $daemon->usage;
65 $daemon = $daemon->usage('Foo');
66
67 Usage information for this command, used for the help screen.
68
70 Mojolicious::Command::daemon inherits all methods from
71 Mojolicious::Command and implements the following new ones.
72
73 run
74 $daemon->run(@ARGV);
75
76 Run this command.
77
79 Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.
80
81
82
83perl v5.32.0 2020-07-28 Mojolicious::Command::daemon(3)