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