Have you checked out the documentation of the PidFile class in the 
Daemons gem? It implements options :dir_mode=>:dir, 
:dir=>"/path/to/piddir"

Also, you can pass a filename as the first argument to daemonize(). 
However, both STDOUT and STDERR are written to the same file.

I found this out just through a little grepping.

    cd /var/lib/gems/1.8/gems/daemons-1.0.10/
    grep -iR pidfile .
    grep -iR stderr .
-- 
Posted via http://www.ruby-forum.com/.