Method: Eye::Process::System#save_pid_to_file

Defined in:
lib/eye/process/system.rb

#save_pid_to_fileObject



16
17
18
19
20
21
22
23
24
25
# File 'lib/eye/process/system.rb', line 16

def save_pid_to_file
  if self.pid
    File.open(self[:pid_file_ex], 'w') do |f|
      f.write self.pid
    end
    true
  else
    false
  end
end