On Tue, Aug 31, 2010 at 01:02:28PM -0500, Justin Pasher wrote:
> smtp unix - - n - - smtp
> -o syslog_name=$my_instance_name
> --------------------
>
> Turns out, the macro doesn't get expanded in the process name.
>
> 4894 ? S 0:00 smtpd -n smtp -t inet -u -o syslog_name
> $my_instance_name
> 7755 ? S 0:00 cleanup -z -t unix -u -o syslog_name
> $my_instance_name
> 7758 ? S 0:00 smtp -t unix -u -o syslog_name $my_instance_name
> 8468 ? S 0:00 smtpd -n smtp -t inet -u -o syslog_name
> $my_instance_name
> 8491 ? S 0:00 smtp -t unix -u -o syslog_name $my_instance_name
It is not supposed to get expanded by the master(8) daemon, it gets
expanded by the service process when it evaluates the command-line
assignment. If you want to "get" the process command-line, (what's
wrong with the parent process id?) you have to put literal values in
master.cf.
--
Viktor.