Merge pull request #910 from BastilleBSD/limits-clear-reset

limits: Add clear, reset, stats, show, add, remove  as commands
This commit is contained in:
Barry McCormick
2025-04-02 07:46:49 -07:00
committed by GitHub
3 changed files with 99 additions and 27 deletions

View File

@@ -3,12 +3,20 @@ limits
Set resourse limits for targeted jail(s).
To add a limit, use `bastille limits TARGET add OPTION VALUE`
To clear the limits from the system, use `bastille limits TARGET clear`
To clear the limits, and remove the rctl.conf, use `bastille limits TARGET reset`
To remove a limit, use `bastille limits TARGET remove OPTION`
.. code-block:: shell
ishmael ~ # bastille limits help
Usage: bastille limits [option(s)] TARGET OPTION VALUE"
Example: bastille limits JAILNAME memoryuse 1G"
Usage: bastille limits [option(s)] TARGET [add OPTION VALUE|remove OPTION|clear|reset|[list|show] (active)|stats]
Example: bastille limits TARGET add memoryuse 1G"
Options: