Module: Specinfra::Command::Module::Service::Runit
- Included in:
- Base::Service
- Defined in:
- lib/specinfra/command/module/service/runit.rb
Instance Method Summary collapse
Instance Method Details
#check_is_enabled_under_runit(service) ⇒ Object
10 11 12 |
# File 'lib/specinfra/command/module/service/runit.rb', line 10 def check_is_enabled_under_runit(service) "test ! -f /etc/sv/#{escape(service)}/down" end |
#check_is_running_under_runit(service) ⇒ Object
6 7 8 |
# File 'lib/specinfra/command/module/service/runit.rb', line 6 def check_is_running_under_runit(service) "sv status #{escape(service)} | grep -E '^run: '" end |