# File lib_core/rucy/rc_d.rb, line 7 def daemon catch(:START_DAEMON) do unless (fork) then Process.setsid unless (fork) then #Dir.chdir('/') STDIN.reopen('/dev/null', 'r') STDOUT.reopen('/dev/null', 'w') STDERR.reopen('/dev/null', 'w') throw :START_DAEMON end end exit! end nil end