Class: Oxidized::CLI
- Inherits:
-
Object
- Object
- Oxidized::CLI
- Includes:
- SemanticLogger::Loggable
- Defined in:
- lib/oxidized/cli.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
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 |