Class: Oxidized::CLI

Inherits:
Object
  • Object
show all
Includes:
SemanticLogger::Loggable
Defined in:
lib/oxidized/cli.rb

Instance Method Summary collapse

Instance Method Details

#runObject



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/oxidized/cli.rb', line 11

def run
  check_pid
  Process.daemon if @opts[:daemonize]
  write_pid
  begin
    logger.info "Oxidized starting, running as pid #{$PROCESS_ID}"
    Oxidized.new
  rescue StandardError => e
    crash e
    raise
  end
end