Method: Nitro::DrbServer#start!
- Defined in:
- lib/nitro/server/drb.rb
#start! ⇒ Object
Start the DRb server. – TODO: refactor with runner code. ++
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/nitro/server/drb.rb', line 107 def start if @daemon require 'daemons/daemonize' pwd = Dir.pwd Daemonize.daemonize() # Restore the original pwd (daemonize sets the # pwd to '/'). Dir.chdir(pwd) # Save a process sentinel file. FileUtils.touch ".d#{Process.pid}.pid" end setup_drb() end |