From owner-freebsd-jail@freebsd.org Sun Dec 20 19:57:45 2015 Return-Path: Delivered-To: freebsd-jail@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 88457A4999A; Sun, 20 Dec 2015 19:57:45 +0000 (UTC) (envelope-from trashcan@odo.in-berlin.de) Received: from mx1.enfer-du-nord.net (mx1.enfer-du-nord.net [87.98.149.189]) (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 57AEB1631; Sun, 20 Dec 2015 19:57:44 +0000 (UTC) (envelope-from trashcan@odo.in-berlin.de) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: How to define the order of starting jails? From: Michael Grimm In-Reply-To: <1450639510.27618.8.camel@michaeleichorn.com> Date: Sun, 20 Dec 2015 20:57:33 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5D6BA0FE-60E1-4C6B-906B-BB62A1AB9BE8@odo.in-berlin.de> <1450639510.27618.8.camel@michaeleichorn.com> To: freebsd-jail@freebsd.org, freebsd-questions X-Mailer: Apple Mail (2.2104) X-Virus-Scanned: clamav-milter 0.99 at mail.kaan-bock.invalid X-Virus-Status: Clean X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2015 19:57:45 -0000 Michael B. Eichorn wrote > On Sun, 2015-12-20 at 17:50 +0100, Michael Grimm wrote: >> But I am bit stuck in finding a way to start my jails in a pre- >> defined order (e.g. first DNS, then mail, =E2=80=A6). [=E2=80=A6] >> Thus, I might have overlooked it, is there a way to achieve my goal >> using jail and jail.conf? >> Or something else? > jail(8)'s '*' operates on everything without concern for rc.conf, as > such jail_list is not respected. Perhaps try something tied to the = rc.d > system. Does `service jail restart` do what you are looking for? Bingo! That made the trick! Thank you very, very much! Cool! That = command is stopping and starting jails in the order as listed in = "jail_list". Ok, it isn't stopping jails in the reverse order, but that = is no big deal, though. [Arrrgh, I never heard of "service" before (after so many years with = FBSD) :-( What a shame ...] Thanks and with kind regards, Michael