lib/puppet/provider/service/daemontools.rb
# find the service dir on this node
find the service dir on this node
find the service dir on this node
def servicedir
    unless @servicedir
      ["/service", "/etc/service","/var/lib/svscan"].each do |path|
        if FileTest.exist?(path)
          @servicedir = path
          break
        end
      end
      raise "Could not find service directory" unless @servicedir
    end
    @servicedir
  end
def servicedir unless @servicedir [ "/service" , "/etc/service" , "/var/lib/svscan" ] . each do | path | if FileTest . exist? ( path ) @servicedir = path break end end raise "Could not find service directory" unless @servicedir end @servicedir end
find the service dir on this node
find the service dir on this node