sshd with zombie process on FreeBSD 10.0-STABLE - workaround
Kevin Oberman
rkoberman at gmail.com
Wed Mar 19 16:01:49 UTC 2014
On Wed, Mar 19, 2014 at 6:00 AM, Marcelo Gondim <gondim at bsdinfo.com.br>wrote:
> Hi all,
>
> While the solution does not appear, did the script below and put it in
> crontab to automatically delete zombie sshd processes.
>
> the_walking_dead.sh:
>
> #!/bin/sh
> kill -9 `ps afx|grep sshd|grep unknown|awk '{print $1}'`
>
>
> Put this in /etc/crontab:
>
> 00 1 * * * root the_walking_dead.sh
>
>
If 'kill -9' works, the process is not really a zombie. It simply still has
a socket open and is waiting for it to be closed before exiting.
You might takes a look at network sockets with sockstat(1) and see if you
can get any indication of why these sockets are not being closed. It may be
that the issue is not sshd but some other issue in the OS leaving sockets
open.
--
R. Kevin Oberman, Network Engineer, Retired
E-mail: rkoberman at gmail.com
More information about the freebsd-stable
mailing list