lib/puppet/provider/service/bsd.rb
# if the service file exists in rc.conf.d then it's already enabled
if the service file exists in rc.conf.d then it's already enabled
if the service file exists in rc . conf . d then it ' s already enabled
def enabled?
    rcfile = File.join(rcconf_dir, @model[:name])
    return :true if File.exists?(rcfile)
    :false
  end
def enabled? rcfile = File . join ( rcconf_dir , @model [ :name ] ) return :true if File . exists? ( rcfile ) :false end
if the service file exists in rc.conf.d then it's already enabled
if the service file exists in rc . conf . d then it ' s already enabled