mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +00:00
Simplify rlimit documentation a bit
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
bf4a0abe5c
commit
dae21d9d64
1 file changed
+5
-8
+5
-8
@@ -52,14 +52,11 @@ Syntax
|
|||||||
Script or program to bring up networking, with optional arguments
|
Script or program to bring up networking, with optional arguments
|
||||||
|
|
||||||
* `rlimit <hard|soft> RESOURCE <LIMIT|infinity>`
|
* `rlimit <hard|soft> RESOURCE <LIMIT|infinity>`
|
||||||
Modify the specified resource's hard or soft limit to be the
|
Set the hard or soft limit for a resource. `RESOURCE` is a lower-case
|
||||||
specifed limit. `RESOURCE` is a lower-case string matching the
|
string matching the `RLIMIT_` constants from `setrlimit(2)`, without
|
||||||
constants in `setrlimit(2)` with the `RLIMIT_` prefix
|
the prefix. E.g. to set `RLIMIT_CPU`, use `cpu`. The limit is an
|
||||||
removed. E.g. to select `RLIMIT_CPU`, `RESOURCE` would be
|
integer that depends on the resource being modified, see the man page
|
||||||
`cpu`. `LIMIT` is an integer whose unit depends on the resource
|
for more information. The special limit `infinity` means unlimited.
|
||||||
being modified, see `setrlimit(2)` for more information. The special
|
|
||||||
limit `infinity` means the there should be no limit on the resource,
|
|
||||||
i.e. `RLIM_INFINITY` is passed to `setrlimit(2)`.
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# No process is allowed more than 8MB of address space
|
# No process is allowed more than 8MB of address space
|
||||||
|
|||||||
Reference in new issue
Block a user