[Mongrel] Daemonizing a camping server

Zed A. Shaw zedshaw at zedshaw.com
Tue Mar 20 10:44:15 EDT 2007

On Tue, 20 Mar 2007 14:53:39 +0100
"Dimitri Aivaliotis" <aglarond at gmail.com> wrote:

> Alright, solved my problem.  Don't know if it'll help Matt, as well.
> The key is in the documentation comment for daemonize:
>     # You must call this *before* frameworks that open files
>     # as otherwise the files will be closed by this function.

Aha! Classic PEBKAC eh?  :-)

> Oh, no pid file is created, no matter if I give :pid_file to the
> Configurator.new call or to the daemonize call as in builder.rb.

Make sure you give a full path for all your files you configure.  If
not, let me know and I'll check it out.

Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu
http://www.awprofessional.com/title/0321483502 -- The Mongrel Book

More information about the Mongrel-users mailing list