Re: RFE: Make instance name visible in ps output

2011-05-02 Thread Wietse Venema
FYI, there exists no standard function to set the "process title". BSD has setproctitle() in the system library which as the manpage says, is "implicitly non-standard". Other systems don't have an equivalent in their system library, as far as I know. I prefer not to maintain Postfix's own version

Re: RFE: Make instance name visible in ps output

2011-05-02 Thread Patrick Ben Koetter
* Victor Duchovni : > > > 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 e

Re: RFE: Make instance name visible in ps output

2011-05-02 Thread Victor Duchovni
On Mon, May 02, 2011 at 09:38:08PM +0200, Patrick Ben Koetter wrote: > * Victor Duchovni : > > 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 y

Re: RFE: Make instance name visible in ps output

2011-05-02 Thread Patrick Ben Koetter
* Victor Duchovni : > 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..

Re: RFE: Make instance name visible in ps output

2011-05-02 Thread Victor Duchovni
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 sou

Re: RFE: Make instance name visible in ps output

2011-04-30 Thread Patrick Ben Koetter
* Victor Duchovni : > On Sat, Apr 30, 2011 at 06:07:46PM +0200, Patrick Ben Koetter wrote: > > > I have two instances of Postfix (2.7.1) running on a server, but I can't > > tell > > which is which: > > > > % ps axf > > ... > > 31383 ?Ss 0:00 /usr/lib/postfix/master > > 31627 ?

Re: RFE: Make instance name visible in ps output

2011-04-30 Thread Victor Duchovni
On Sat, Apr 30, 2011 at 06:07:46PM +0200, Patrick Ben Koetter wrote: > I have two instances of Postfix (2.7.1) running on a server, but I can't tell > which is which: > > % ps axf > ... > 31383 ?Ss 0:00 /usr/lib/postfix/master > 31627 ?S 0:00 \_ pickup -l -t fifo -u -c >

Re: RFE: Make instance name visible in ps output

2011-04-30 Thread Reindl Harald
Am 30.04.2011 18:07, schrieb Patrick Ben Koetter: > I have two instances of Postfix (2.7.1) running on a server, but I can't tell > which is which: > > When I go for lsof output I can guess: > > root@mail:/var/spool/postfix% lsof -i -n | grep master > master31383root 12u IPv4 1623580

RFE: Make instance name visible in ps output

2011-04-30 Thread Patrick Ben Koetter
I have two instances of Postfix (2.7.1) running on a server, but I can't tell which is which: % ps axf ... 31383 ?Ss 0:00 /usr/lib/postfix/master 31627 ?S 0:00 \_ pickup -l -t fifo -u -c 31628 ?S 0:00 \_ qmgr -l -t fifo -u 31505 ?Ss 0:00 /usr/lib