Date: Tue, 7 Aug 2007 15:40:45 -0500 From: Erik Osterholm <freebsd-lists-erik@erikosterholm.org> To: Eric Crist <mnslinky@gmail.com> Cc: Narek Gharibyan <ngharibyan@mail.ru>, freebsd-questions@freebsd.org, 'Xihong Yin' <xyin@bluebottle.com> Subject: Re: restart network without shutdown Message-ID: <20070807204045.GA86926@idoru.cepheid.org> In-Reply-To: <1F65B63B-94D0-4AD5-A128-D5C03875E052@gmail.com> References: <Pine.CYG.4.58.0708070859220.3944@OHD12-8386.nws.noaa> <001201c7d906$58e8ee40$180ca8c0@arm.synisys.com> <1F65B63B-94D0-4AD5-A128-D5C03875E052@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> >-----Original Message----- > > >From: owner-freebsd-questions@freebsd.org > > >[mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Xihong Yin > > >Sent: Tuesday, August 07, 2007 6:02 PM > > >To: freebsd-questions@freebsd.org > > >Subject: restart network without shutdown > > > > > >How can I restart my network card without shutdown/reboot? I use DHCP. > > > > > >Thanks, > On Aug 7, 2007, at 10:19 AMAug 7, 2007, Narek Gharibyan wrote: > >I think the best way is > > > >/etc/netstart > > > >but when you try it via ssh connection it outputs an fatal error > >and your > >ssh hangs up. You cannot connect again via ssh. > > > >But you can do it via console and everything will ok. > > On Tue, Aug 07, 2007 at 10:42:11AM -0500, Eric Crist wrote: > Install screen from ports, run it from within screen. > > You'll still get disconnected, but you should be able to reconnect > after it's done. Screen will allow the script to complete, whereas > your ssh session is killing it half/part way through... > > HTH > > Eric Crist I'm generally a big screen advocate, but in this case, wouldn't nohup work as well? And it's in base. Erik
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070807204045.GA86926>