xref: /freebsd/share/man/man5/rctl.conf.5 (revision 07b2c79cc6c782ae57b6287688338d0ac3941e66)
1ee2509d1SEdward Tomasz Napierala.\" Copyright (c) 2011 Edward Tomasz Napierala
2ee2509d1SEdward Tomasz Napierala.\" Copyright (c) 1999 Chris Costello <chris@FreeBSD.org>
3ee2509d1SEdward Tomasz Napierala.\" All rights reserved.
4ee2509d1SEdward Tomasz Napierala.\"
5ee2509d1SEdward Tomasz Napierala.\" Redistribution and use in source and binary forms, with or without
6ee2509d1SEdward Tomasz Napierala.\" modification, are permitted provided that the following conditions
7ee2509d1SEdward Tomasz Napierala.\" are met:
8ee2509d1SEdward Tomasz Napierala.\" 1. Redistributions of source code must retain the above copyright
9ee2509d1SEdward Tomasz Napierala.\"    notice, this list of conditions and the following disclaimer.
10ee2509d1SEdward Tomasz Napierala.\" 2. Redistributions in binary form must reproduce the above copyright
11ee2509d1SEdward Tomasz Napierala.\"    notice, this list of conditions and the following disclaimer in the
12ee2509d1SEdward Tomasz Napierala.\"    documentation and/or other materials provided with the distribution.
13ee2509d1SEdward Tomasz Napierala.\"
14ee2509d1SEdward Tomasz Napierala.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15ee2509d1SEdward Tomasz Napierala.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16ee2509d1SEdward Tomasz Napierala.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17ee2509d1SEdward Tomasz Napierala.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18ee2509d1SEdward Tomasz Napierala.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19ee2509d1SEdward Tomasz Napierala.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20ee2509d1SEdward Tomasz Napierala.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21ee2509d1SEdward Tomasz Napierala.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22ee2509d1SEdward Tomasz Napierala.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23ee2509d1SEdward Tomasz Napierala.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24ee2509d1SEdward Tomasz Napierala.\" SUCH DAMAGE.
25ee2509d1SEdward Tomasz Napierala.\"
26*07b2c79cSBenedict Reuschling.Dd October 6, 2023
27ee2509d1SEdward Tomasz Napierala.Dt RCTL.CONF 5
28ee2509d1SEdward Tomasz Napierala.Os
29ee2509d1SEdward Tomasz Napierala.Sh NAME
30ee2509d1SEdward Tomasz Napierala.Nm rctl.conf
31ee2509d1SEdward Tomasz Napierala.Nd resource limits database defaults
32ee2509d1SEdward Tomasz Napierala.Sh DESCRIPTION
33ee2509d1SEdward Tomasz NapieralaThe
34ee2509d1SEdward Tomasz Napierala.Pa /etc/rctl.conf
35ee2509d1SEdward Tomasz Napieralafile is read in when the system goes into multi-user mode to set default
36ee2509d1SEdward Tomasz Napieralacontents of the RCTL database.
37ee2509d1SEdward Tomasz NapieralaThe
38ee2509d1SEdward Tomasz Napierala.Pa /etc/rctl.conf
39ee2509d1SEdward Tomasz Napieralais in the format of the
40ee2509d1SEdward Tomasz Napierala.Xr rctl 8
41ee2509d1SEdward Tomasz Napieralacommand, i.e.\&
42ee2509d1SEdward Tomasz Napierala.Bd -literal -offset indent
43ee2509d1SEdward Tomasz Napieralasubject:subject-id:resource:action=amount/per
44ee2509d1SEdward Tomasz Napierala.Ed
45ee2509d1SEdward Tomasz Napierala.Pp
46ee2509d1SEdward Tomasz NapieralaComments are denoted by a
47ee2509d1SEdward Tomasz Napierala.Dq #
48ee2509d1SEdward Tomasz Napieralaat the beginning of a line.
49ee2509d1SEdward Tomasz NapieralaComments can also exist at the end of a line,
50ee2509d1SEdward Tomasz Napieralaas seen in the
51ee2509d1SEdward Tomasz Napierala.Sx EXAMPLES
52ee2509d1SEdward Tomasz Napieralasection, below.
53ee2509d1SEdward Tomasz Napierala.Sh FILES
54ee2509d1SEdward Tomasz Napierala.Bl -tag -width /etc/rctl.conf -compact
55ee2509d1SEdward Tomasz Napierala.It Pa /etc/rctl.conf
56ee2509d1SEdward Tomasz NapieralaInitial settings for
57ee2509d1SEdward Tomasz Napierala.Xr rctl 8 .
58ee2509d1SEdward Tomasz Napierala.El
59ee2509d1SEdward Tomasz Napierala.Sh EXAMPLES
60ee2509d1SEdward Tomasz NapieralaTo limit the number of processes for users in login class "testing",
61ee2509d1SEdward Tomasz Napieralause a rule like
62ee2509d1SEdward Tomasz Napierala.Bd -literal -offset indent
63ee2509d1SEdward Tomasz Napierala# Resource limits for the "testing" class.
64*07b2c79cSBenedict Reuschlingloginclass:testing:maxproc:deny=100/user # At most 100 processes per user
65ee2509d1SEdward Tomasz Napierala.Ed
66ee2509d1SEdward Tomasz Napierala.Sh SEE ALSO
67ee2509d1SEdward Tomasz Napierala.Xr rctl 8
68ee2509d1SEdward Tomasz Napierala.Sh HISTORY
69ee2509d1SEdward Tomasz NapieralaThe
70ee2509d1SEdward Tomasz Napierala.Nm
71ee2509d1SEdward Tomasz Napieralafile appeared in
72ee2509d1SEdward Tomasz Napierala.Fx 9.0 .
73