Class: Specinfra::Command::Cumulusnetworks::Base::Service

Inherits:
Debian::Base::Service show all
Defined in:
lib/specinfra/command/cumulus/base/service.rb

Class Method Summary collapse

Methods inherited from Debian::Base::Service

check_is_enabled, disable, enable, reload, restart, start, stop

Methods inherited from Base::Service

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_running(service) ⇒ Object



3
4
5
# File 'lib/specinfra/command/cumulus/base/service.rb', line 3

def check_is_running(service)
  "service #{escape(service)} status && service #{escape(service)} status | grep 'running'"
end