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