summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/monkey/man/monkey.1
blob: cabda22b9daef9c2a974295ea4fd16e0f8390073 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
.TH Monkey 1 "Jul 01, 2015"
.\" Please update the above date whenever this man page is modified.
.SH NAME
monkey \- Monkey HTTP Server
.SH SYNOPSIS
.B monkey [options]
.SH DESCRIPTION
\fBmonkey\fP is fast and scalable web server for Linux, OSX and FreeBSD.
This manual page only lists the command line arguments available. For further and
more detailed information regarding the program configuration see the Monkey manual,
found at http://monkey-project.com/documentation .

.SH OPTIONS
This command will launch the Monkey webserver. It accepts the
following options:
.TP 8

.B \-c, --configdir=DIR
Allows to specify an optional configuration directory where the required
configuration files by Monkey are located. It's expected that under this directory
exists the files: monkey.conf, monkey.mime, plugins.load and the plugins/ directory.
.TP 8

.B \-s, --serverconf=FILE
Overrides the default path of the 'monkey.conf' configuration file.
.TP 8

.B \-d, --daemon
Launches the server as a daemon (background process). The default behaviour is to
stay attached to the controlling terminal.
.TP 8

.B \-I, --pid-file=FILE
Overrides the default path for the 'pid' file.
.TP 8

.B \-p, --port=PORT
Specify a single listener TCP port, this option overrides the content of the
configuration file.
.TP 8

.B \-o, --one-shot=DIR
The one-shot mode and directory path associated, makes to serve that directory
content as the document root of the default virtual host.
.TP 8

.B \-t, --transport=TRANSPORT
Specify a transport layer plugin. This option overrides the configuration file
and allows just one plugin, either 'liana' for plain sockets or 'tls' for SSL/TLS
support (just if 'tls' plugin was compiled and available).
.TP 8

.B \-w, --workers=N
Specify the number of worker threads that Monkey will spawn upon start. Each worker
thread is capable to handle several connections, is suggested to spawn a worker per
CPU core available. By default Monkey set this value to zero (--workers=0) which
let's Monkey core to detect the number of CPU core available and spawn one worker
per core.
.TP 8

.B \-m, --mimes-conf-file=FILE
Specify a configuration file that holds the mime types available.
.TP 8

.B \-l, --plugins-load-conf-file=FILE
Specify a configuration file that holds the list of dynamic plugins to load.
.TP 8

.B \-S, --sites-conf-dir=DIR
Specify the directory path where the files that defines the virtual hosts are
available.
.TP 8

.B \-P, --plugins-conf-dir=DIR
Specify the directory path where the plugins can locate their configuration files.
.TP 8

.B \-b, --balancing-mode
This option enable the OLD balancing mode when receiving connections. It means that
for every TCP connection that arrives, the Monkey Scheduler will assign the
connection to the least-busy worker thread.

The default and new mechanism is based on the shared TCP sockets implementation,
which let the OS Kernel to decide to which worker thread assign the new connection.
.TP 8

.B \-T, --allow-shared-sockets
When using shared TCP sockets (no --balancing-mode), multiple instances of Monkey
can be started. Monkey will detect if the TCP port is in use by another process,
despite the address can be shared, Monkey will notify this and abort. This option
let Monkey know that despites the address is shared and in-use, continue anyways.
.TP 8

.B \-b, --build
Print build information and exit. It prints to the standard output the configure
options, default paths, built-in plugins and others.
.TP 8

.B \-v, --version
Prints Monkey's version and exit.
.TP 8

.B \-h, --help
Prints this help.
.TP 8

.SH SIGNALS
The following signals are supported by Monkey:
.TP 8
\fBSIGTERM\fR, Exits
.TP 8
\fBSIGINT\fR,  Exits
.TP 8
\fBSIGHUP\fR,  Exits
.TP 8
\fBSIGBUS\fR,  Print invalid address
.TP 8
\fBSIGSEGV\fR, Print invalid address

.SH BUGS
.SS Bug reports
In general, send bug reports to the bug report mailing list at <monkey@lists.monkey-project.com>. You are requested to use a descriptive subject for your email message, perhaps parts of the error message.

.SH AUTHOR
Eduardo Silva <eduardo@monkey.io> and the rest of the Monkey Project team.
.PP
This manpage is maintained by the Monkey HTTP Daemon Project team.