From owner-freebsd-questions Mon Jan 14 14:41:29 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 5AFB637B419 for ; Mon, 14 Jan 2002 14:41:21 -0800 (PST) Received: from hades.hell.gr (patr530-a233.otenet.gr [212.205.215.233]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id g0EMfCY07756; Tue, 15 Jan 2002 00:41:13 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id g0ELgWw32007; Mon, 14 Jan 2002 23:42:32 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Mon, 14 Jan 2002 23:42:32 +0200 From: Giorgos Keramidas To: Christopher Schulte Cc: Mike Meyer , "Brian T.Schellenberger" , questions@freebsd.org Subject: Re: Restarting a service Message-ID: <20020114214232.GI31045@hades.hell.gr> References: <71952277@toto.iv> <5.1.0.14.0.20020114101809.04018490@pop3s.schulte.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7J16OGEJ/mt06A90" Content-Disposition: inline In-Reply-To: <5.1.0.14.0.20020114101809.04018490@pop3s.schulte.org> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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