chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::Platform::ServiceHelpers.service_resource_providers
This helper is mostly used to sort out the mess of different linux mechanisms that can be used to start services. It does not necessarily need to linux-specific, but currently all our other service providers are narrowly platform-specific with no alternatives. NOTE: if a system has (for example) chkconfig installed then we should report that chkconfig is installed. The fact that a system may also have systemd installed does not mean that we do not report that systemd is also installed. This module is purely for discovery of all the alternatives, handling the priority of the different services is NOT a design concern of this module.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/platform/service_helpers.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--Platform--ServiceHelpers-service_resource_providers-for-pr
# Commit to gitgit add lib/chef/platform/service_helpers.rbgit commit -m "better docs for Chef::Platform::ServiceHelpers.service_resource_providers"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--Platform--ServiceHelpers-service_resource_providers-for-pr
hub pull-request
# Celebrate!