Method: Chef::Resource::Service#priority
- Defined in:
- lib/chef/resource/service.rb
#priority(arg = nil) ⇒ Object
Priority arguments can have two forms:
-
a simple number, in which the default start runlevels get that as the start value and stop runlevels get 100 - value.
-
a hash like { 2 => [:start, 20], 3 => [:stop, 55] }, where the service will be marked as started with priority 20 in runlevel 2, stopped in 3 with priority 55 and no symlinks or similar for other runlevels
153 154 155 156 157 |
# File 'lib/chef/resource/service.rb', line 153 def priority(arg=nil) set_or_return(:priority, arg, :kind_of => [ Integer, String, Hash ]) end |