# File lib/puppet/provider/service/freebsd.rb, line 66
66:   def rc_replace(service, rcvar, yesno)
67:     success = false
68:     # Replace in all files, not just in the first found with a match
69:     [@@rcconf, @@rcconf_local, @@rcconf_dir + "/#{service}"].each do |filename|
70:       if File.exists?(filename)
71:         s = File.read(filename)
72:         if s.gsub!(/(#{rcvar}_enable)=\"?(YES|NO)\"?/, "\\1=\"#{yesno}\"")
73:           File.open(filename, File::WRONLY) { |f| f << s }
74:           self.debug("Replaced in #{filename}")
75:           success = true
76:         end
77:       end
78:     end
79:     success
80:   end