From owner-freebsd-questions Mon Jan 14 9:37:57 2002 Delivered-To: freebsd-questions@freebsd.org Received: from relay3-gui.server.ntli.net (relay3-gui.server.ntli.net [194.168.4.200]) by hub.freebsd.org (Postfix) with ESMTP id 084BC37B478 for ; Mon, 14 Jan 2002 09:37:46 -0800 (PST) Received: from pc3-card4-0-cust122.cdf.cable.ntl.com ([62.254.251.122] helo=rhadamanth.private.submonkey.net ident=exim) by relay3-gui.server.ntli.net with esmtp (Exim 3.03 #2) id 16QB3J-0000Hb-00 for questions@freebsd.org; Mon, 14 Jan 2002 17:37:45 +0000 Received: from setantae by rhadamanth.private.submonkey.net with local (Exim 3.34 #1) id 16QB33-0001EX-00 for questions@freebsd.org; Mon, 14 Jan 2002 17:37:29 +0000 Date: Mon, 14 Jan 2002 17:37:29 +0000 From: Ceri To: questions@freebsd.org Subject: Re: Restarting a service Message-ID: <20020114173729.GB4614@rhadamanth> References: <71952277@toto.iv> <15426.65401.224226.567679@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15426.65401.224226.567679@guru.mired.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 On Mon, Jan 14, 2002 at 09:55:37AM -0600, Mike Meyer wrote: > 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. > > 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. This is probably better : /bin/kill -HUP `/bin/cat /var/run/sshd.pid` I run this once an hour from cron (if I don't, sshd dumps core for some reason). Ceri -- keep a mild groove on To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message