summaryrefslogtreecommitdiff
path: root/lib/chef/resource/launchd.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-08-26 14:49:20 -0700
committerGitHub <noreply@github.com>2020-08-26 14:49:20 -0700
commit2a7a35a22073d86ef830767f08e431b906eba328 (patch)
tree583a0a14641bcebf777124611081c89ffb9fc974 /lib/chef/resource/launchd.rb
parentff8a59dab5091968171c69297c315a6943ea28ed (diff)
parent92001258bd817b532b915ac53ac16f4762bd643e (diff)
downloadchef-2a7a35a22073d86ef830767f08e431b906eba328.tar.gz
Merge pull request #10359 from chef/launchd_nice
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/launchd.rb')
-rw-r--r--lib/chef/resource/launchd.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/resource/launchd.rb b/lib/chef/resource/launchd.rb
index 70ff7b8974..a6125f7981 100644
--- a/lib/chef/resource/launchd.rb
+++ b/lib/chef/resource/launchd.rb
@@ -187,7 +187,8 @@ class Chef
description: "Specify services to be registered with the bootstrap subsystem."
property :nice, Integer,
- description: "The program scheduling priority value in the range -20 to 20."
+ description: "The program scheduling priority value in the range -20 to 19.",
+ callbacks: { "should be a Integer between -20 and 19" => proc { |v| v >= -20 && v <= 19 } }
property :on_demand, [ TrueClass, FalseClass ],
description: "Keep a job alive. Only applies to macOS version 10.4 (and earlier); use keep_alive instead for newer versions."