Date: Sun, 13 Jan 2002 21:43:48 -0500 From: Brian T.Schellenberger <bts@babbleon.org> To: zhuravlev alexander <zaa@ulstu.ru>, FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Restarting a service Message-ID: <07bf90444020e12FE5@mail5.nc.rr.com> In-Reply-To: <20020114032409.A13036@ulstu.ru> References: <CMEKLCBLMIJBADIJEKFAOEDMCDAA.patrick_oreilly@mweb.co.za> <01c901c19c8d$5b08a6e0$0401a8c0@Hewey> <20020114032409.A13036@ulstu.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?07bf90444020e12FE5>
