[Mongrel] mongrel_cluster, start on boot, stale pids
Istvan Szukacs
leccine at gmail.com
Wed Mar 5 14:38:02 EST 2008
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
>
>
>
More information about the Mongrel-users
mailing list