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.56.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.55.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.54.2 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.54.1 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.54.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.53.1 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.53.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.52.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.51.2 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.51.1 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.51.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.50.4 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.50.3 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.50.2 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.50.1 lib/specinfra/command/freebsd/base/service.rb