Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jan 2002 09:55:37 -0600
From:      "Mike Meyer" <mwm-dated-1011455737.3e0c77@mired.org>
To:        Brian T.Schellenberger <bts@babbleon.org>
Cc:        questions@freebsd.org
Subject:   Re: Restarting a service
Message-ID:  <15426.65401.224226.567679@guru.mired.org>
In-Reply-To: <71952277@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Brian T.Schellenberger <bts@babbleon.org> 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.

	<mike
--
Mike Meyer <mwm@mired.org>			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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15426.65401.224226.567679>