# File lib/chef/resource/service.rb, line 25 def initialize(name, run_context=nil) super @resource_name = :service @service_name = name @enabled = nil @running = nil @pattern = service_name @start_command = nil @stop_command = nil @status_command = nil @restart_command = nil @reload_command = nil @priority = nil @action = "nothing" @startup_type = :automatic @supports = { :restart => false, :reload => false, :status => false } @allowed_actions.push(:enable, :disable, :start, :stop, :restart, :reload) end