From owner-freebsd-questions@freebsd.org Thu Jan 7 18:44:21 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0D69AA674EC for ; Thu, 7 Jan 2016 18:44:21 +0000 (UTC) (envelope-from trashcan@odo.in-berlin.de) Received: from mx1.enfer-du-nord.net (mx1.enfer-du-nord.net [IPv6:2001:41d0:1008:bcb:1:1:0:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D407E1A86 for ; Thu, 7 Jan 2016 18:44:20 +0000 (UTC) (envelope-from trashcan@odo.in-berlin.de) From: Michael Grimm Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: soft restart of a jail Message-Id: Date: Thu, 7 Jan 2016 19:44:08 +0100 To: freebsd-questions Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) X-Mailer: Apple Mail (2.3112) X-Virus-Scanned: clamav-milter 0.99 at mail X-Virus-Status: Clean X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jan 2016 18:44:21 -0000 Hi =E2=80=94 I recently migrated regular jails to VNET jails, and I am pretty much = pleased about their new opportunities. During that exercise I ran across the sysutils/iocage jail managment = system, where I first read about a feature called "soft restart of a = jail". If I understand it correctly, here one doesn't remove/start a = jail including its network stack, but one only restarts a jail's = "content", instead. I did try to understand iocage's code, but I am unsure whether I got it = right: previously defined routing is removed, followed by a /bin/sh = /etc/rc.shutdown and /bin/sh /etc/rc, and finalized by a = reimplementation of a previously removed routing. (I hope that I got = that right.) Here my question: wouldn't a "/bin/sh /etc/rc.shutdown ; /bin/sh = /etc/rc" be sufficient? Is it necessary to remove/reinstall routing as = well? Again: I might be completely misunderstandig the code of iocage, thus my = questions to those with more knowledge. Thanks and regards, Michael