class Specinfra::Command::Freebsd::Base::Service

Public Class Methods

check_is_enabled(service, level=3) click to toggle source
# File lib/specinfra/command/freebsd/base/service.rb, line 3
def check_is_enabled(service, level=3)
  "service #{escape(service)} enabled"
end
check_is_running_under_init(service) click to toggle source
# File lib/specinfra/command/freebsd/base/service.rb, line 6
def check_is_running_under_init(service)
  "service #{escape(service)} status | grep -E 'as (pid [0-9]+)'"
end