Class: Specinfra::Command::Darwin::Base::Service
Class Method Summary
collapse
check_is_monitored_by_god, check_is_monitored_by_monit, check_is_running_under_daemontools, check_is_running_under_runit, check_is_running_under_supervisor, check_is_running_under_upstart
Methods inherited from Base
create, escape
Class Method Details
.check_is_enabled(service, level = nil) ⇒ Object
3
4
5
|
# File 'lib/specinfra/command/darwin/base/service.rb', line 3
def check_is_enabled(service, level=nil)
"launchctl list | grep #{escape(service)}"
end
|
.check_is_running(service) ⇒ Object
7
8
9
|
# File 'lib/specinfra/command/darwin/base/service.rb', line 7
def check_is_running(service)
"launchctl list | grep #{escape(service)} | grep -E '^[0-9]+'"
end
|