RCTL.CONF(5)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1, nixpkgs unstable

πŸŽ€ RCTL.CONF(5) πŸŽ€

okay so this is the manual page for rctl.conf β€” it lives in File Formats Manual, and honestly? underrated.


✨ NAME ✨

rctl.conf β€” the resource limits database defaults, bestie. that's the whole vibe.


πŸ’– DESCRIPTION πŸ’–

so like, the /etc/rctl.conf file gets read in when the system goes into multi-user mode, and its whole job is to set the default contents of the RCTL database. main character energy, truly. πŸ‘‘

and the way /etc/rctl.conf is formatted? it's literally in the format of the rctl(8) command, i.e.

subject:subject-id:resource:action=amount/per

comments are denoted by a # at the beginning of a line β€” yes bestie, that's the move. 🫢 but also!! comments can exist at the end of a line too, as seen in the EXAMPLES section below. iykyk.


πŸ¦‹ FILES πŸ¦‹

  • /etc/rctl.conf β€” initial settings for rctl(8). that's it, that's the file. πŸ’…

🌸 EXAMPLES 🌸

so say you wanna limit the number of processes for users in login class "testing" β€” you'd use a rule like this:

# Resource limits for the "testing" class.
loginclass:testing:maxproc:deny=100/user # At most 100 processes per user

see how the comment sits right there at the end of the line? iconic. no cap. πŸ”₯


🧚 SEE ALSO 🧚


⭐ HISTORY ⭐

the rctl.conf file appeared in FreeBSD 9.0. periodt. πŸ’œ


πŸ’Œ and that's the page!! brought to you by Debian, dated October 6, 2023 β€” slay, go set some limits, bestie πŸŒˆπŸŽ€βœ¨
πŸ“¦ where this page comes from