From owner-freebsd-questions Sun Jan 13 18:44:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail5.nc.rr.com (fe5.southeast.rr.com [24.93.67.52]) by hub.freebsd.org (Postfix) with ESMTP id B473337B400 for ; Sun, 13 Jan 2002 18:44:07 -0800 (PST) Received: from there ([66.57.85.154]) by mail5.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Sun, 13 Jan 2002 21:44:04 -0500 Content-Type: text/plain; charset="koi8-r" From: Brian T.Schellenberger To: zhuravlev alexander , FreeBSD Questions Subject: Re: Restarting a service Date: Sun, 13 Jan 2002 21:43:48 -0500 X-Mailer: KMail [version 1.3] References: <01c901c19c8d$5b08a6e0$0401a8c0@Hewey> <20020114032409.A13036@ulstu.ru> In-Reply-To: <20020114032409.A13036@ulstu.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: <07bf90444020e12FE5@mail5.nc.rr.com> 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 Sunday 13 January 2002 07:24 pm, zhuravlev alexander wrote: > On Sun, Jan 13, 2002 at 06:52:26PM -0500, Allen May wrote: > > I have modified my sshd_config and want to restart the daemon without > > rebooting the computer. How do I restart the SSHD? > > In Mandrake Linux I can restart a daemon/service, like SSH or Apache by > > doing the following: > > /etc/init.d/httpd restart OR /etc/init.d/sshd restart > > > > 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) > > > Thanks > > > > -Allen > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message -- Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) Brian, the man from Babble-On . . . . bts@babbleon.org (personal) http://www.babbleon.org -------> Free Dmitry Sklyarov! (let him go home) <----------- http://www.eff.org http://www.programming-freedom.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message