Date: Fri, 07 Feb 2014 21:23:06 -0800 From: Darren Pilgrim <list_freebsd@bluerosetech.com> To: Vladislav Prodan <universite@ukr.net>, Erich Dollansky <erichsfreebsdlist@alogt.com> Cc: questions@freebsd.org Subject: Re: Restart network without reboot ? Message-ID: <52F5BF3A.2030500@bluerosetech.com> In-Reply-To: <1391827303.738906888.k9hzy6eo@frv35.fwdcdn.com> References: <1391822758.499117562.qad9aups@frv35.fwdcdn.com> <20140208102029.04d2eb10@X220.alogt.com> <1391827303.738906888.k9hzy6eo@frv35.fwdcdn.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2/7/2014 6:43 PM, Vladislav Prodan wrote: >> "Erich Dollansky" <erichsfreebsdlist@alogt.com> wrote: >> On Sat, 08 Feb 2014 03:31:08 +0200 Vladislav Prodan >> <universite@ukr.net> wrote: >>> >>> # service netif restart && service routing restart Stopping >>> dhclient. Waiting for PIDS: 672. >>> >>> And disconnect via ssh :( >> >> as expected. >> >> What is your problem? > > What there are other ways to restart the network without breaking the > current ssh session? You can't. The connection state is going to get reset. You can, however, run the service commands in a screen or tmux session to prevent the connection reset from disrupting the shell running the service commands. You should also add ";service sshd restart" to the end of the command to make sure sshd comes back up if died when networking bounced.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52F5BF3A.2030500>