# File lib/puppet/provider/service/redhat.rb, line 30 30: def enabled? 31: begin 32: output = chkconfig(@resource[:name]) 33: rescue Puppet::ExecutionFailure 34: return :false 35: end 36: 37: # If it's disabled on SuSE, then it will print output showing "off" 38: # at the end 39: if output =~ /.* off$/ 40: return :false 41: end 42: 43: :true 44: end