[Mongrel] mongrel_cluster, start on boot, stale pids
John Joseph Bachir
johnjosephbachir at gmail.com
Thu Mar 6 18:31:56 EST 2008
On Wed, Mar 5, 2008 at 2:16 PM, Simon Santoro <simon.santoro at gmail.com> wrote:
> there is a patch here:
> http://textsnippets.com/posts/show/931
> and a ticket got submitted here:
> http://rubyforge.org/tracker/index.php?func=detail&aid=11098&group_id=1306&atid=5147
>
> but it was not committed because "mongrel_rails now supports a --clean".
> my mongrel_rails does not support it, but I may have an old version.
>
> I think it would be right for mongrel to clean up it's stale pid files. Every
> program I know of does that, and I patched my mongrel.
Furthermore, the behavior of the --clean feature isn't very
elaborately documented (at least not in the output of mongrel_rails
cluster::start -h). I left this comment on the ticket (no way to
reopen it I guess):
----
The patch mentioned checks if the pid files refer to running processes.
Does the --clean feature do this? Or does it just blindly remove the pid files?
An additionally nice and easy feature would be to check if the running
process contains the string "mongrel".
John
--
John Joseph Bachir
http://blog.johnjosephbachir.org
http://lyceum.ibiblio.org
http://dissent.cc
http://jjb.cc
More information about the Mongrel-users
mailing list