Date: Mon, 14 Jan 2002 17:37:29 +0000 From: Ceri <setantae@submonkey.net> To: questions@freebsd.org Subject: Re: Restarting a service Message-ID: <20020114173729.GB4614@rhadamanth> In-Reply-To: <15426.65401.224226.567679@guru.mired.org> References: <71952277@toto.iv> <15426.65401.224226.567679@guru.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 14, 2002 at 09:55:37AM -0600, Mike Meyer wrote: > 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. > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020114173729.GB4614>