Method: Flydata::Command::Sender#process_exist?
- Defined in:
- lib/flydata/command/sender.rb
#process_exist? ⇒ Boolean
140 141 142 143 |
# File 'lib/flydata/command/sender.rb', line 140 def process_exist? # Returns true if the process is running `[ -f #{pid_file} ] && pgrep -P \`cat #{pid_file}\``.to_i > 0 end |