# File lib/chef/provider/service/redhat.rb, line 37 def load_current_resource unless ::File.exists? "/sbin/chkconfig" raise Chef::Exceptions::Service, "/sbin/chkconfig does not exist!" end super chkconfig = shell_out!("/sbin/chkconfig --list #{@current_resource.service_name}", :returns => [0,1]) @current_resource.enabled(!!(chkconfig.stdout =~ CHKCONFIG_ON)) @current_resource end