class Specinfra::Command::Gentoo::Base::Service

Public Class Methods

check_is_enabled(service, level=3) click to toggle source
# File lib/specinfra/command/gentoo/base/service.rb, line 3
def check_is_enabled(service, level=3)
  regexp = /\s*#{service}\s*\|\s*(boot|default)/
  "rc-update show | grep -- #{escape(regexp)}"
end
check_is_running(service) click to toggle source
# File lib/specinfra/command/gentoo/base/service.rb, line 8
def check_is_running(service)
  "/etc/init.d/#{escape(service)} status"
end