[Mongrel] Daemonizing a camping server
aglarond at gmail.com
Tue Mar 20 11:21:44 EDT 2007
On 3/20/07, Zed A. Shaw <zedshaw at zedshaw.com> wrote:
> 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? :-)
Yep. Could you change the docs slightly to prevent other idiots like
myself from falling into the same trap? Something like the following
right after what's quoted above:
# (This includes +listener+ blocks - call daemonize before you set up
> > 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.
I am using full paths: :pid_file => "/tmp/test.pid"
What other info can I give you to help debug this?
More information about the Mongrel-users