Method: Nitro::DrbServer#start
- Defined in:
- lib/nitro/server/drb.rb
#start ⇒ Object
Start the DRb server. – TODO: refactor with runner code. ++
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/nitro/server/drb.rb', line 88 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 |