Sha256: bc51b9c5737a9515d2a032f3642f19176b7adad3c91dbb5698a1656574ccedaa

Contents?: true

Size: 337 Bytes

Versions: 75

Compression:

Stored size: 337 Bytes

Contents

class Specinfra::Command::Freebsd::Base::Service < Specinfra::Command::Base::Service
  class << self
    def check_is_enabled(service, level=3)
      "service -e | grep -- #{escape(service)}"
    end
    def check_is_running_under_init(service)
      "service #{escape(service)} status | grep -E 'as \\(pid [0-9]+\\)'"
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
specinfra-2.66.8 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.66.7 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.66.6 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.66.5 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.66.4 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.66.3 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.66.2 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.66.1 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.66.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.65.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.64.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.63.3 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.63.2 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.63.1 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.63.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.62.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.61.3 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.61.2 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.61.1 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.61.0 lib/specinfra/command/freebsd/base/service.rb