Sha256: 375a10d97b6d0c437d8926f04331d45b4aaeab401bfbb86453dc7ac32023e649

Contents?: true

Size: 333 Bytes

Versions: 17

Compression:

Stored size: 333 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

17 entries across 17 versions & 1 rubygems

Version Path
specinfra-2.76.4 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.76.3 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.76.2 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.76.1 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.76.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.75.1 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.75.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.74.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.73.4 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.73.3 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.73.2 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.73.1 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.73.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.72.1 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.72.0 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.71.3 lib/specinfra/command/freebsd/base/service.rb
specinfra-2.71.2 lib/specinfra/command/freebsd/base/service.rb