Sha256: 909aab51f8a21f86554a3859a49262cb198367bf418c58ecb1131e604e1010b4

Contents?: true

Size: 261 Bytes

Versions: 1

Compression:

Stored size: 261 Bytes

Contents

module Kurchatov
  module Mixin
    module RunitService

      def runit_service_stat(service)
        return "unknown" unless File.exitst?("/etc/sv/#{service}/supervise/stat")
        File.read("/etc/sv/#{service}/supervise/stat")
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kurchatov-0.1.3 lib/kurchatov/mixin/runit_service.rb