# File lib/daemons/application.rb, line 151 def start_proc return unless options[:proc] unless options[:ontop] @pid.pid = Daemonize.call_as_daemon(options[:proc], logfile) else # Daemonize.simulate(logfile) # # @pid.pid = Process.pid # # Thread.new(&options[:proc]) unless @pid.pid = Process.fork Daemonize.simulate(logfile) options[:proc].call exit else Process.detach(@pid.pid) end end end