Sha256: ad8d2f227e832b545795b1945ccc05103a859095367f637015f75eeb29e1b4bf

Contents?: true

Size: 339 Bytes

Versions: 9

Compression:

Stored size: 339 Bytes

Contents

class Specinfra::Command::Openbsd::Base::Service < Specinfra::Command::Base::Service
  def check_is_enabled(service, level=nil)
    "egrep '(#{escape(service)}_flags=|^pkg_scripts=\"(.*)#{escape(service)}(.*)\")' /etc/rc.conf.local | grep -v \=NO"
  end

  def check_is_running(service)
    "/etc/rc.d/#{escape(service)} status"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta15 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.0.0.beta14 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.0.0.beta13 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.0.0.beta12 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.0.0.beta11 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.0.0.beta10 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.0.0.beta9 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.0.0.beta8 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.0.0.beta7 lib/specinfra/command/openbsd/base/service.rb