mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
manual: Clarify that limits.conf doesn't apply to systemd services. (#40267)
Say how systemd services can be set instead. Sources: * https://bugzilla.redhat.com/show_bug.cgi?id=754285 * https://ro-che.info/articles/2017-03-26-increase-open-files-limit Signed-off-by: Niklas Hambüchen <mail@nh2.me>
This commit is contained in:
parent
0c321443d5
commit
7f79a4fe11
2 changed files with 9 additions and 2 deletions
|
@ -449,6 +449,10 @@ in
|
||||||
<varname>item</varname>, and <varname>value</varname>
|
<varname>item</varname>, and <varname>value</varname>
|
||||||
attribute. The syntax and semantics of these attributes
|
attribute. The syntax and semantics of these attributes
|
||||||
must be that described in the limits.conf(5) man page.
|
must be that described in the limits.conf(5) man page.
|
||||||
|
|
||||||
|
Note that these limits do not apply to systemd services,
|
||||||
|
whose limits can be changed via <option>systemd.extraConfig</option>
|
||||||
|
instead.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,11 @@ with lib;
|
||||||
Enables storing core dumps in systemd.
|
Enables storing core dumps in systemd.
|
||||||
Note that this alone is not enough to enable core dumps. The maximum
|
Note that this alone is not enough to enable core dumps. The maximum
|
||||||
file size for core dumps must be specified in limits.conf as well. See
|
file size for core dumps must be specified in limits.conf as well. See
|
||||||
<option>security.pam.loginLimits</option> as well as the limits.conf(5)
|
<option>security.pam.loginLimits</option> and the limits.conf(5)
|
||||||
man page.
|
man page (these specify the core dump limits for user login sessions)
|
||||||
|
and <option>systemd.extraConfig</option> (where e.g.
|
||||||
|
<literal>DefaultLimitCORE=1000000</literal> can be specified to set
|
||||||
|
the core dump limit for systemd system-level services).
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue