Class: Utils::Multipathd
- Inherits:
-
Object
- Object
- Utils::Multipathd
- Defined in:
- lib/utils/multipathd.rb
Class Method Summary collapse
Class Method Details
.daemon_name(value = nil) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/utils/multipathd.rb', line 4 def self.daemon_name(value=nil) if value @daemon_name = value else @daemon_name || 'multipathd' end end |
.running? ⇒ Boolean
12 13 14 |
# File 'lib/utils/multipathd.rb', line 12 def self.running? !`service #{daemon_name} status`.match(/running/).nil? end |