# File lib/puppet/provider/service/init.rb, line 88
 88:   def search(name)
 89:     paths.each { |path|
 90:       fqname = File.join(path,name)
 91:       begin
 92:         stat = File.stat(fqname)
 93:       rescue
 94:         # should probably rescue specific errors...
 95:         self.debug("Could not find #{name} in #{path}")
 96:         next
 97:       end
 98: 
 99:       # if we've gotten this far, we found a valid script
100:       return fqname
101:     }
102: 
103:     paths.each { |path|
104:       fqname_sh = File.join(path,"#{name}.sh")
105:       begin
106:         stat = File.stat(fqname_sh)
107:       rescue
108:         # should probably rescue specific errors...
109:         self.debug("Could not find #{name}.sh in #{path}")
110:         next
111:       end
112: 
113:       # if we've gotten this far, we found a valid script
114:       return fqname_sh
115:     }
116:     raise Puppet::Error, "Could not find init script for '#{name}'"
117:   end