Method: Eye::Process::Controller#monitor

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

#monitorObject



25
26
27
28
29
30
31
32
33
# File 'lib/eye/process/controller.rb', line 25

def monitor
  if self[:auto_start]
    start
  elsif load_external_pid_file == :ok
    switch :already_running
  else
    schedule command: :unmonitor, reason: 'not found'
  end
end