# File lib/daemons/application.rb, line 89 def start_exec unless options[:ontop] Daemonize.daemonize(logfile, @group.app_name) else Daemonize.simulate(logfile) end # note that we cannot remove the pid file if we run in :ontop mode (i.e. 'ruby ctrl_exec.rb run') @pid.pid = Process.pid ENV['DAEMONS_ARGV'] = @controller_argv.join(' ') # haven't tested yet if this is really passed to the exec'd process... Kernel.exec(script(), *ARGV) end