Sha256: f483c9525ec7e639bed70f1a1e12757b25b45dd5fb52aca0612c9e1f3fea83e4
Contents?: true
Size: 715 Bytes
Versions: 7
Compression:
Stored size: 715 Bytes
Contents
class Specinfra::Command::Base::Service < Specinfra::Command::Base class << self def check_is_running(service) "service #{escape(service)} status" end def check_is_running_under_supervisor(service) "supervisorctl status #{escape(service)} | grep RUNNING" end def check_is_running_under_upstart(service) "initctl status #{escape(service)} | grep running" end def check_is_running_under_daemontools(service) "svstat /service/#{escape(service)} | grep -E 'up \\(pid [0-9]+\\)'" end def check_is_monitored_by_monit(service) "monit status" end def check_is_monitored_by_god(service) "god status #{escape(service)}" end end end
Version data entries
7 entries across 7 versions & 1 rubygems