From owner-freebsd-questions Mon Jan 14 7:55:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-201-166.mmcable.com [65.31.201.166]) by hub.freebsd.org (Postfix) with SMTP id 0FBF137B402 for ; Mon, 14 Jan 2002 07:55:38 -0800 (PST) Received: (qmail 2386 invoked by uid 100); 14 Jan 2002 15:55:37 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15426.65401.224226.567679@guru.mired.org> Date: Mon, 14 Jan 2002 09:55:37 -0600 To: Brian T.Schellenberger Cc: questions@freebsd.org Subject: Re: Restarting a service In-Reply-To: <71952277@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.44 (Python 2.2; freebsd-4.4-STABLE-i386) 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 Brian T.Schellenberger types: > On Sunday 13 January 2002 07:24 pm, zhuravlev alexander wrote: > > > How do I do the equivelent in FreeBSD? > > > > ps -auxww | grep sshd -you will find PID of ssh daemon > > then simple > > kill -HUP PID(which you get from prev step) > simpler yet, just > > killall -HUP sshd > > should do it. > > (killall is basically ps -aux | grep | kill all wrapped up into a neat > automated package for you) I thought about pointing that out, but for sshd it's a bad idea. Unless you want to log off everyone logged in via ssh at the same time, that is. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message