On Mon, May 02, 2011 at 09:38:08PM +0200, Patrick Ben Koetter wrote:

> * Victor Duchovni <postfix-users@postfix.org>:
> > On Sat, Apr 30, 2011 at 10:08:40PM +0200, Patrick Ben Koetter wrote:
> > 
> > > > So to find which master is which instance you need to look in the 
> > > > master.pid
> > > > files or in /proc, ... If you do look in /proc, each child process has
> > > > MAIL_CONFIG in its environment...
> > > 
> > > I see, and I don't want to sound ungrateful, but I was looking for 
> > > something
> > > simpler.
> > 
> > Is this useful?
> 
> Definitely! I ran it on a machine that has four instances of whom two weren't
> running and it failed on the first one not running. Could it be the script
> does not handle such situations?

You of all people should be able to better explain what "failed" means...
The script tests the master.pid lock, and only reports child processes
when the master is running. What went wrong in your case? It is a simple
enough "script" (pretty much a one-liner), likely you can improve it...

-- 
        Viktor.

Reply via email to