Sha256: abe95b410cd54ada2545067de4e7a81dbbc7aaf8ef87c00289b2a449ecfecc9e

Contents?: true

Size: 579 Bytes

Versions: 55

Compression:

Stored size: 579 Bytes

Contents

class Specinfra::Command::Base::Service < Specinfra::Command::Base
  class << self
    def check_is_running(service)
      "service #{escape(service)} status"
    end

    def check_is_running_under_supervisor(service)
      "supervisorctl status #{escape(service)} | grep RUNNING"
    end

    def check_is_running_under_upstart(service)
      "initctl status #{escape(service)} | grep running"
    end

    def check_is_monitored_by_monit(service)
      "monit status"
    end

    def check_is_monitored_by_god(service)
      "god status #{escape(service)}"
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
specinfra-2.11.0 lib/specinfra/command/base/service.rb
specinfra-2.10.4 lib/specinfra/command/base/service.rb
specinfra-2.10.3 lib/specinfra/command/base/service.rb
specinfra-2.10.2 lib/specinfra/command/base/service.rb
specinfra-2.10.1 lib/specinfra/command/base/service.rb
specinfra-2.10.0 lib/specinfra/command/base/service.rb
specinfra-2.9.3 lib/specinfra/command/base/service.rb
specinfra-2.9.2 lib/specinfra/command/base/service.rb
specinfra-2.9.1 lib/specinfra/command/base/service.rb
specinfra-2.9.0 lib/specinfra/command/base/service.rb
specinfra-2.8.0 lib/specinfra/command/base/service.rb
specinfra-2.7.0 lib/specinfra/command/base/service.rb
specinfra-2.6.0 lib/specinfra/command/base/service.rb
specinfra-2.5.0 lib/specinfra/command/base/service.rb
specinfra-2.4.5 lib/specinfra/command/base/service.rb
specinfra-2.4.4 lib/specinfra/command/base/service.rb
specinfra-2.4.3 lib/specinfra/command/base/service.rb
specinfra-2.4.2 lib/specinfra/command/base/service.rb
specinfra-2.4.1 lib/specinfra/command/base/service.rb
specinfra-2.4.0 lib/specinfra/command/base/service.rb