lib/specinfra/command/base/service.rb in specinfra-2.11.7 vs lib/specinfra/command/base/service.rb in specinfra-2.11.8

- old
+ new

@@ -14,9 +14,13 @@ 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)