Date: Mon, 14 Jan 2002 23:42:32 +0200 From: Giorgos Keramidas <keramida@freebsd.org> To: Christopher Schulte <schulte+freebsd@nospam.schulte.org> Cc: Mike Meyer <mwm-dated-1011455737.3e0c77@mired.org>, "Brian T.Schellenberger" <bts@babbleon.org>, questions@freebsd.org Subject: Re: Restarting a service Message-ID: <20020114214232.GI31045@hades.hell.gr> In-Reply-To: <5.1.0.14.0.20020114101809.04018490@pop3s.schulte.org> References: <71952277@toto.iv> <5.1.0.14.0.20020114101809.04018490@pop3s.schulte.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On 2002-01-14 10:21:47, Christopher Schulte wrote:
> Use lsof ( /usr/ports/sysutils/lsof ) and HUP only the listening sshd
> process.
>
> # lsof -i tcp:22 | grep LISTEN
> sshd 89005 root 4u IPv4 0xcd88ab60 0t0 TCP *:ssh (LISTEN)
I like sockstat too :-)
$ sockstat -l4 | { read head ; echo "${head}" ; grep sshd ; }
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
root sshd 178 3 tcp4 *:22 *:*
> # killall -HUP 89005
That's kill (not killall) you mean, right?
--
Giorgos Keramidas . . . . . . . . . keramida@{ceid.upatras.gr,freebsd.org}
FreeBSD Documentation Project . . . http://www.freebsd.org/docproj/
FreeBSD: The power to serve . . . . http://www.freebsd.org/
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
iD8DBQE8Q1DH1g+UGjGGA7YRAsKqAKCZSeOkVqFCYbN/HOVi8S0PIgazwACgwoP2
7qXQew1nWVqpZ0lzJeI85yg=
=dK4j
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020114214232.GI31045>
