# File lib/daemons/application.rb, line 289 def start(restart = false) change_privilege unless restart @group.create_monitor(self) unless options[:ontop] # we don't monitor applications in the foreground end case options[:mode] when :none # this is only used to daemonize the currently running process start_none when :exec start_exec when :load start_load when :proc start_proc else start_load end end