to write a script which checks the running pids and pid files and if 
there is staled pid just remove it?
(and after let the normal starting process run)

mongrel_rails and mongrel_cluster_ctl are written in ruby,
you will not hurt the original library with this modification

if the --clean is not working well...

istvan,
http://weho.st

Jonathan Rochkind wrote:
> So I am using the instructions here to have mongrel_cluster start my 
> various mongrel-deployed apps on server boot.
> http://mongrel.rubyforge.org/wiki/MongrelCluster
>
> There is a problem mentioned here:
> http://www.ruby-forum.com/topic/105849
>
> In summary---if the server (or the mongrel processes) die ungracefully 
> leaving their pids behind, then on next boot, mongrel_cluster won't 
> succesfully start them up, choking on the leftover pids.
>
> What is the reccommended solution to this?  I'd like to have my mongrels 
> automatically start on boot, in a way that forces them to start even if 
> there are stale pids. Thanks for any advice!
>
> [ PS: I just discovered this problem the hard way, when my server 
> unexpetedly lost power, and my production apps failed to start up on the 
> next boot!  Very unpleasant. ]
>
> Jonathan
>
>
>   

_______________________________________________
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to