[Mongrel] Finding out on which port mongrel is running

Maximilian Schoefmann schoefma at cip.ifi.lmu.de
Fri Aug 4 09:01:52 EDT 2006


>> Yes, this would be an option. Unfortunately I would loose the
>> possibility
>> to use the nice mongrel_cluster gem to manage my cluster (maybe
>> this would
>> be a useful addition to mongrel_cluster).
> The port is included in the name of the pid file. Could you just
> parse it from the file name?

yes, that's what I'm in fact doing now :-)
But I have to open every file matching the mongrel.<portnumber>.pid
pattern and check if the stored pid matches the current pid.
... not the most elegant solution :-/ but it works


More information about the Mongrel-users mailing list