[Mongrel] Daemonizing a camping server

Zed A. Shaw zedshaw at zedshaw.com
Fri Mar 30 09:38:58 EDT 2007

On Thu, 29 Mar 2007 23:36:53 +0200
"Dimitri Aivaliotis" <aglarond at gmail.com> wrote:

> On 3/28/07, Zed A. Shaw <zedshaw at zedshaw.com> wrote:
> > Well, everyone else seems to be getting PID files no problem
> This was my clue here.  It seems that everyone else is using
> mongrel_rails - I'm not.  I'm trying to setup Mongrel::Configurator to
> run just mongrel.  The builder example threw me off because it will
> not generate a pid file, no matter what system I run it on.  I've
> attached a patch that fixes this.  Could you consider applying it?

Ohhhhhh, you didn't say that, from what I read it seemed like you were
running mongrel_rails.  Yes, the builder is out of sync so thanks for
he patch.
> The solution is to pass :pid_file to Mongrel::Configurator.new and not
> daemonize, as indicated in the example.  You also need to explicitly
> call write_pid_file because it's not actually called anywhere within
> Mongrel::Configurator itself (looking at mongrel_rails helped here).

I'll put this on in the next release.  Thanks again.

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