daemonization by setting UNICORN_DAEMONIZE env
commit302beb7158a7217a3c8e5499ef98b33c284b1dd8
authorEric Wong <normalperson@yhbt.net>
Tue, 10 Feb 2009 05:17:02 +0000 (9 21:17 -0800)
committerEric Wong <normalperson@yhbt.net>
Tue, 10 Feb 2009 05:17:02 +0000 (9 21:17 -0800)
treecc63826a6a870eec4b4d80e91feef3d5c51c49b5
parent4b5e01a32cb005dd890c32a78cf34150efc7a208
daemonization by setting UNICORN_DAEMONIZE env

Daemonization only happens once at initial startup and is less
intrusive than traditional daemonize routines:  we do not chdir,
set umask, or redirect/close STDOUT/STDERR since those are
doable via other config options with Unicorn (and the Unicorn
"config file" is just Ruby).

STDIN has no business being open on a daemon (and can be
dangerous to close if using certain buggy third-party libs).
bin/unicorn