Sha256: ea02589cb150d7006df4fd0e22fe1f70b95e29538fc91fb55551a07814a93d33
Contents?: true
Size: 611 Bytes
Versions: 9
Compression:
Stored size: 611 Bytes
Contents
class Specinfra::Command::Base::Service < Specinfra::Command::Base def check_is_running(service) "service #{escape(service)} status" end def check_is_installed(service, level=3) raise NotImplementedError.new 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_monitored_by_monit(service) "monit status" end def check_is_monitored_by_god(service) "god status #{escape(service)}" end end
Version data entries
9 entries across 9 versions & 1 rubygems