If you are on linux, would you find these commands helpful ?
pgrep master|xargs ps –fp
Example Output:
UID PID PPID C STIME TTY TIME CMD
root 7437 1 0 2016 ? 00:29:41 /usr/libexec/postfix/master
pgrep -u postfix|xargs ps –fp
Example Output:
UID PID PPID C STIME TTY STAT TIME CMD
postfix 7449 7437 0 2016 ? S 52:35 qmgr -l -t fifo -u
postfix 7837 7437 0 2016 ? S 0:19 tlsmgr -l -t unix -u
postfix 13859 7437 0 05:54 ? S 0:02 scache -l -t unix -u
postfix 17144 7437 0 06:36 ? S 0:11 trivial-rewrite -n rewrite
-t unix -u
postfix 28545 7437 0 Jan03 ? S 0:02 anvil -l -t unix -u
postfix 29491 7437 0 09:14 ? S 0:00 pickup -l -t fifo -u
postfix 29620 7437 0 09:15 ? S 0:00 smtp -t unix -u
postfix 29623 7437 0 09:15 ? S 0:00 smtp -t unix -u
postfix 29624 7437 0 09:15 ? S 0:00 smtp -t unix -u
postfix 29625 7437 0 09:16 ? S 0:00 smtp -t unix -u
postfix 29626 7437 0 09:16 ? S 0:00 smtp -t unix -u
postfix 29627 7437 0 09:16 ? S 0:00 smtp -t unix -u
postfix 30435 7437 0 09:26 ? S 0:00 smtp -t unix -u
postfix 30436 7437 0 09:26 ? S 0:00 smtp -t unix -u
postfix 30437 7437 0 09:26 ? S 0:00 smtp -t unix -u
postfix 30438 7437 0 09:26 ? S 0:00 smtp -t unix -u
postfix 30439 7437 0 09:26 ? S 0:00 smtp -t unix -u
postfix 30461 7437 0 09:26 ? S 0:00 smtp -t unix -u
postfix 30896 7437 0 09:31 ? S 0:00 smtpd -n smtp -t inet -u -o
stress=
postfix 30910 7437 0 09:31 ? S 0:00 trivial-rewrite -n rewrite
-t unix -u
postfix 31302 7437 0 09:35 ? S 0:00 bounce -z -n defer -t unix -u
postfix 31303 7437 0 09:35 ? S 0:00 bounce -z -n defer -t unix -u
postfix 31304 7437 0 09:35 ? S 0:00 smtp -t unix -u
postfix 31305 7437 0 09:35 ? S 0:00 bounce -z -n defer -t unix -u
postfix 31306 7437 0 09:35 ? S 0:00 smtp -t unix -u
postfix 31307 7437 0 09:35 ? S 0:00 smtp -t unix -u
postfix 31323 7437 0 09:36 ? S 0:00 smtp -t unix -u
postfix 31324 7437 0 09:36 ? S 0:00 smtp -t unix -u
postfix 31325 7437 0 09:36 ? S 0:00 smtp -t unix -u
postfix 31326 7437 0 09:36 ? S 0:00 smtp -t unix -u
postfix 31340 7437 0 09:36 ? S 0:00 bounce -z -n defer -t unix -u
postfix 31437 7437 0 09:37 ? S 0:00 cleanup -z -t unix -u
postfix 31439 7437 0 09:37 ? S 0:00 cleanup -z -t unix -u
postfix 31441 7437 0 09:37 ? S 0:00 smtpd -n smtp -t inet -u -o
stress=
postfix 31444 7437 0 09:37 ? S 0:00 smtpd -n smtp -t inet -u -o
stress=
postfix 31446 7437 0 09:37 ? S 0:00 smtpd -n smtp -t inet -u -o
stress=
postfix 31451 7437 0 09:37 ? S 0:00 cleanup -z -t unix -u
-Angelo Fazzina
Operating Systems Programmer / Analyst
University of Connecticut, UITS, SSG, Server Systems
860-486-9075
From: [email protected] [mailto:[email protected]]
On Behalf Of Marco Pizzoli
Sent: Wednesday, January 4, 2017 2:45 AM
To: Postfix users <[email protected]>
Subject: multi-instances: how to discriminate "master" in process list
Hi all,
I have a multi-instance setup.
By doing "ps -ef", as expected, I see a lot of "master" processes.
Is there a way to see which master is related to which instance at a glance?
So that I can rapidly say this pid is for instance 1, and so on...
What I am looking at is, ideally, a way to see the process name something like
"master-instance1"
i.e. rspamd does exactly this, assigning a different process name just to
explicit the "incarnation" of that process
Thank you in advance
Marco