Module: Cognizant::Process::Status
- Included in:
- Cognizant::Process
- Defined in:
- lib/cognizant/process/status.rb
Instance Method Summary collapse
Instance Method Details
#pid_running? ⇒ Boolean
18 19 20 |
# File 'lib/cognizant/process/status.rb', line 18 def pid_running? Cognizant::System.pid_running?(cached_pid) end |
#process_running? ⇒ Boolean
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/cognizant/process/status.rb', line 6 def process_running? @process_running = begin if @ping_command and run(@ping_command).succeeded? true elsif pid_running? true else false end end end |