From owner-freebsd-jail@freebsd.org Sun Dec 20 16:50:32 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 B21BFA4E428; Sun, 20 Dec 2015 16:50:32 +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 828FA143B; Sun, 20 Dec 2015 16:50:32 +0000 (UTC) (envelope-from trashcan@odo.in-berlin.de) Received: from [IPv6:2003:45:4845:fc01:8d4a:3ac1:149c:b4b] (p200300454845FC018D4A3AC1149C0B4B.dip0.t-ipconnect.de [IPv6:2003:45:4845:fc01:8d4a:3ac1:149c:b4b]) by mx1.enfer-du-nord.net (Postfix) with ESMTPSA id 3pNqg95rJ8zNw; Sun, 20 Dec 2015 17:50:29 +0100 (CET) From: Michael Grimm Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: How to define the order of starting jails? Message-Id: <5D6BA0FE-60E1-4C6B-906B-BB62A1AB9BE8@odo.in-berlin.de> Date: Sun, 20 Dec 2015 17:50:28 +0100 To: freebsd-jail@freebsd.org, freebsd-questions Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) X-Virus-Scanned: clamav-milter 0.99 at mail.kaan-bock.invalid X-Virus-Status: Clean X-Mailer: Apple Mail (2.2104) 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 16:50:32 -0000 Hi =E2=80=94 [Background: I wish to run (some of my) ezjail-made jails and VNET which = cannot be done by ezjail, natively.] But I found a way to mix both ezjail and basic jail(8) functionality. = It's quite easy to fire up ezjail-made jails defined in jail.conf by = jail. And, now I can apply VNET to those jails I do wish to run their = own network stacks. That's all working well. 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). Well, I can achieve that = during boot time by using jail_list=3D"dns mail =E2=80=A6" in rc.conf. = But, this is respected during boot time, *only*. Whenever I do run a = "jail -rc '*'" that shutdown and starting order becomes arbitrary. It = doesn't follow the sequence of my jail definitions in jail.conf, either. = I thoroughly checked the jail.conf(5) man page for a functionality that = would allow me to define a startup/shutdown sequence, but I couldn't = find it. Thus, I might have overlooked it, is there a way to achieve my goal = using jail and jail.conf? Or something else? Thanks and regards, Michael