[Mongrel] writing pid file earlier

Kirk Haines wyhaines at gmail.com
Thu Jan 24 13:49:04 EST 2008


On Jan 24, 2008 11:43 AM, Will Green <will at hotgazpacho.com> wrote:
> Lets say you alter the code.
>
> What happens if the PID file is written, but Mongrel dies kicking off the Rails app (because you have a problem with your Rails code)? Won't god* then think that your process is running when it isn't? Isn't this false positiver worse than a couple false negatives?

Well, IMHO, mongrel should write the pid file early, and clean the pid
file up when it dies, for whatever reason short of something
untrappable like a segfault.


Kirk Haines


More information about the Mongrel-users mailing list