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
--7J16OGEJ/mt06A90 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2002-01-14 10:21:47, Christopher Schulte wrote: > Use lsof ( /usr/ports/sysutils/lsof ) and HUP only the listening sshd=20 > 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 ADDRE= SS root sshd 178 3 tcp4 *:22 *:* > # killall -HUP 89005 That's kill (not killall) you mean, right? --=20 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/ --7J16OGEJ/mt06A90 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) iD8DBQE8Q1DH1g+UGjGGA7YRAsKqAKCZSeOkVqFCYbN/HOVi8S0PIgazwACgwoP2 7qXQew1nWVqpZ0lzJeI85yg= =dK4j -----END PGP SIGNATURE----- --7J16OGEJ/mt06A90-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020114214232.GI31045>