Skip to content

Commit

Permalink
Add ability to specify supported option 'infinity' for LimitNPROC (#152)
Browse files Browse the repository at this point in the history
* Add ability to specify supported option 'infinity' for LimitNPROC

From limits.conf(5)
All items support the values -1, unlimited or infinity indicating no limit, except for priority and nice.

* Extend validation to include improved regexp
  • Loading branch information
hdeheer authored Jan 15, 2021
1 parent 5de1526 commit aec39e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/servicelimits.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Optional['LimitRSS'] => Pattern['^(infinity|((\d+(K|M|G|T|P|E)(:\d+(K|M|G|T|P|E))?)))$'],
Optional['LimitNOFILE'] => Variant[Integer[-1],Pattern['^(infinity|\d+(:(infinity|\d+))?)$']],
Optional['LimitAS'] => Pattern['^(infinity|((\d+(K|M|G|T|P|E)(:\d+(K|M|G|T|P|E))?)))$'],
Optional['LimitNPROC'] => Integer[1],
Optional['LimitNPROC'] => Variant[Integer[-1],Pattern['^(infinity|\d+(:(infinity|\d+))?)$']],
Optional['LimitMEMLOCK'] => Pattern['^(infinity|((\d+(K|M|G|T|P|E)(:\d+(K|M|G|T|P|E))?)))$'],
Optional['LimitLOCKS'] => Integer[1],
Optional['LimitSIGPENDING'] => Integer[1],
Expand Down

0 comments on commit aec39e8

Please sign in to comment.