Class: Specinfra::Command::Gentoo::Base::Service
Class Method Summary
collapse
check_is_monitored_by_god, check_is_monitored_by_monit, check_is_running_under_supervisor, check_is_running_under_upstart
Methods inherited from Base
create, escape
Class Method Details
.check_is_enabled(service, level = 3) ⇒ Object
3
4
5
6
|
# 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) ⇒ Object
8
9
10
|
# File 'lib/specinfra/command/gentoo/base/service.rb', line 8
def check_is_running(service)
"/etc/init.d/#{escape(service)} status"
end
|