On 8/30/2010 4:54 PM, Justin Pasher wrote:
Hello,

I have a box running multiple instances of Postfix on multiple
IP addresses (this is a pre-2.6 installation, so the multiple
instances are handled the old way by defining multiple postfix
config directories). I currently have "syslog_name" set for
each instance so I can correlate the log entries with each
instance. However, when individual Postfix processes are
started (smtp, smtpd, pickup, etc), they are not identified in
any way in ps (that I can find) in regards to which instance
they belong to.

So far, the only work-around I've figured out is to add an
additional parameter to the corresponding process in
master.conf (something like this:)

smtp inet n - n - - smtpd
-o syslog_name=postfix-myname

This allows me to identify the process in ps by seeing the
parameters with which it was launched. However, I have to do
this for each process in master.conf, which clutters things up
a bit (it also creates multiple places to change the name if I
need to). Is there a cleaner way to do this than overriding
each processes with a redundant parameter like this?

Thanks.



The only bone I have to throw will reduce the number of places to change it.

# main.cf
my_syslog_name = instanceX
syslog_name = $my_syslog_name

# master.cf
foo  ....  foo
  -o syslog_name=$my_syslog_name



Reply via email to