chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::Resource::Service#priority
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 runlevelsEdit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/resource/service.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--Resource--Service-priority-for-pr
# Commit to gitgit add lib/chef/resource/service.rbgit commit -m "better docs for Chef::Resource::Service#priority"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--Resource--Service-priority-for-pr
hub pull-request
# Celebrate!