# File lib/chef/provider/service/windows.rb, line 115 def disable_service if Win32::Service.exists?(@new_resource.service_name) if start_type == AUTO_START Win32::Service.configure( :service_name => @new_resource.service_name, :start_type => Win32::Service::DISABLED ) @new_resource.updated_by_last_action(true) else Chef::Log.debug "#{@new_resource} already disabled - nothing to do" end else Chef::Log.debug "#{@new_resource} does not exist - nothing to do" end end