From: Stefan Moeding on
Hi!

RICCARDO writes:

> If I run ps -ef I can see sendmail process and not sendmail-nta !!!

There is a difference between the name of the executable and the process
name (which the process is even able to change) including arguments.
Killall seems to use the name of the executable while you see at the
latter with "ps -ef". Look at the differences between the comm and cmd
columns:

# ps axo user,pid,comm,cmd

Other than that enough reasons for not using killall at all were
mentioned.

--
Stefan
From: RICCARDO on
On 11 Feb, 18:29, Stefan Moeding <Feb2010.2.kil...(a)spamgourmet.com>
wrote:
> Hi!
>
> RICCARDO writes:
> > If I run ps -ef I can see sendmail process and not sendmail-nta !!!
>
> There is a difference between the name of the executable and the process
> name (which the process is even able to change) including arguments.
> Killall seems to use the name of the executable while you see at the
> latter with "ps -ef".  Look at the differences between the comm and cmd
> columns:
>
> # ps axo user,pid,comm,cmd
>
> Other than that enough reasons for not using killall at all were
> mentioned.
>
> --
> Stefan

I found out process name is sendmail and executable, which is invoked,
is sendmail-mta
I can see both /usr/sbin/sendmail and /usr/sbin/sendmail-mta link to
the same file