I wrote a simple patch that adds extra functionalities and options to Kernel#daemonize. Basically, you can pass an option hash as an argument to the method. It allow some options to be adjusted: * :umask: set the umask to be uses, default 0000 * :stdin: change the standard input, defaults to /dev/null * :stdout: change the standard output, defaults do /dev/null * :stderr: change the standard error output, defaults to stdout * :pid_file: write the pid to the given file, you need to give an absolute path, otherwise it will write to "/" * :rescue: a proc object or a method name as symbol to be called if a error is raised during the daemonizing process. My english is broken, so it'd be nice if anybody could revise the documentation. Rodrigo Kochenburger divoxx@gmail.com _______________________________________________ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core