From owner-freebsd-questions@FreeBSD.ORG Tue Aug 7 20:40:46 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFE9716A419 for ; Tue, 7 Aug 2007 20:40:46 +0000 (UTC) (envelope-from erik@cepheid.org) Received: from mail.cepheid.org (wintermute.cepheid.org [64.92.165.98]) by mx1.freebsd.org (Postfix) with ESMTP id CB96C13C46A for ; Tue, 7 Aug 2007 20:40:46 +0000 (UTC) (envelope-from erik@cepheid.org) Received: by mail.cepheid.org (Postfix, from userid 1006) id DB5D31714D; Tue, 7 Aug 2007 15:40:45 -0500 (CDT) Date: Tue, 7 Aug 2007 15:40:45 -0500 From: Erik Osterholm To: Eric Crist Message-ID: <20070807204045.GA86926@idoru.cepheid.org> Mail-Followup-To: Erik Osterholm , Eric Crist , Narek Gharibyan , freebsd-questions@freebsd.org, 'Xihong Yin' References: <001201c7d906$58e8ee40$180ca8c0@arm.synisys.com> <1F65B63B-94D0-4AD5-A128-D5C03875E052@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1F65B63B-94D0-4AD5-A128-D5C03875E052@gmail.com> User-Agent: Mutt/1.4.2.2i Cc: Narek Gharibyan , freebsd-questions@freebsd.org, 'Xihong Yin' Subject: Re: restart network without shutdown X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Aug 2007 20:40:47 -0000 > >-----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