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.71.1 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.71.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.70.2 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.70.1 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.70.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.69.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.68.2 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.68.1 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.68.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.67.10 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.67.9 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.67.8 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.67.7 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.67.6 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.67.5 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.67.3 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.67.2 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.67.1 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.67.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.66.9 lib/specinfra/command/freebsd/base/service.rb