# File lib/chef/provider/service/insserv.rb, line 46 def disable_service() run_command(:command => "/sbin/insserv -r -f #{@new_resource.service_name}") end
# File lib/chef/provider/service/insserv.rb, line 41 def enable_service() run_command(:command => "/sbin/insserv -r -f #{@new_resource.service_name}") run_command(:command => "/sbin/insserv -d -f #{@new_resource.service_name}") end
# File lib/chef/provider/service/insserv.rb, line 28 def load_current_resource super # Look for a /etc/rc.*/SnnSERVICE link to signifiy that the service would be started in a runlevel if Dir.glob("/etc/rc**/S*#{@current_resource.service_name}").empty? @current_resource.enabled false else @current_resource.enabled true end @current_resource end
Generated with the Darkfish Rdoc Generator 2.