Sha256: 4d036dc54e7d3fa7975eb76114c7dd6765554955771b018f976359680a7884af
Contents?: true
Size: 826 Bytes
Versions: 66
Compression:
Stored size: 826 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_running_under_runit(service) "sv status #{escape(service)} | grep -E '^run: '" 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
66 entries across 66 versions & 1 rubygems