# File lib/puppet/provider/service/init.rb, line 73
 73:     def search(name)
 74:         @resource[:path].each { |path|
 75:             fqname = File.join(path,name)
 76:             begin
 77:                 stat = File.stat(fqname)
 78:             rescue
 79:                 # should probably rescue specific errors...
 80:                 self.debug("Could not find %s in %s" % [name,path])
 81:                 next
 82:             end
 83: 
 84:             # if we've gotten this far, we found a valid script
 85:             return fqname
 86:         }
 87:         @resource[:path].each { |path|
 88:             fqname_sh = File.join(path,"#{name}.sh")
 89:             begin
 90:                 stat = File.stat(fqname_sh)
 91:             rescue
 92:                 # should probably rescue specific errors...
 93:                 self.debug("Could not find %s.sh in %s" % [name,path])
 94:                 next
 95:             end
 96: 
 97:             # if we've gotten this far, we found a valid script
 98:             return fqname_sh
 99:         }
100:         raise Puppet::Error, "Could not find init script for '%s'" % name
101:     end