class Specinfra::Command::Openbsd::Base::Service

Public Class Methods

check_is_enabled(service, level=nil) click to toggle source
# File lib/specinfra/command/openbsd/base/service.rb, line 11
def check_is_enabled(service, level=nil)
  "/etc/rc.d/#{escape(service)} status"
end
check_is_running(service) click to toggle source
# File lib/specinfra/command/openbsd/base/service.rb, line 15
def check_is_running(service)
  "/etc/rc.d/#{escape(service)} check"
end
create(os_info=nil) click to toggle source
# File lib/specinfra/command/openbsd/base/service.rb, line 3
def create(os_info=nil)
  if (os_info || os)[:release].to_f < 5.7
    self
  else
    Specinfra::Command::Openbsd::V57::Service
  end
end