module Chef::Platform::ServiceHelpers
Public Instance Methods
Source
# File lib/chef/platform/service_helpers.rb, line 42 def config_for_service(service_name) configs = [] configs << :initd if service_script_exist?(:initd, service_name) configs << :upstart if service_script_exist?(:upstart, service_name) configs << :xinetd if service_script_exist?(:xinetd, service_name) configs << :systemd if service_script_exist?(:systemd, service_name) configs << :etc_rcd if service_script_exist?(:etc_rcd, service_name) configs end
Source
# File lib/chef/platform/service_helpers.rb, line 29 def service_resource_providers providers = [] providers << :debian if debianrcd? providers << :invokercd if invokercd? providers << :upstart if upstart? providers << :insserv if insserv? providers << :systemd if systemd? providers << :redhat if redhatrcd? providers end