Top Level Namespace

Defined Under Namespace

Modules: Leanci, MyWorker, Script

Instance Method Summary collapse

Instance Method Details

#run_daemon(config) ⇒ Object



29
30
31
32
33
34
35
36
# File 'lib/daemon.rb', line 29

def run_daemon(config)
  se = ServerEngine.create(nil, MyWorker, {
      daemonize: true,
      supervisor: true,
      worker_type: 'process',
    }.merge!(config))
  se.run
end