From owner-freebsd-jail@freebsd.org Sun Dec 20 21:12:36 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 49809A4D642; Sun, 20 Dec 2015 21:12:36 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward11j.cmail.yandex.net (forward11j.cmail.yandex.net [IPv6:2a02:6b8:0:1630::b1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 074251A4A; Sun, 20 Dec 2015 21:12:35 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [IPv6:2a02:6b8:0:801:1::10]) by forward11j.cmail.yandex.net (Yandex) with ESMTP id 359EC21465; Mon, 21 Dec 2015 00:12:32 +0300 (MSK) Received: from smtp11.mail.yandex.net (localhost [127.0.0.1]) by smtp11.mail.yandex.net (Yandex) with ESMTP id 8A1F17E05B7; Mon, 21 Dec 2015 00:12:31 +0300 (MSK) Received: by smtp11.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 42eYtel643-CV9ORN9F; Mon, 21 Dec 2015 00:12:31 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-ForeignMX: US Subject: Re: How to define the order of starting jails? To: Michael Grimm , freebsd-jail@freebsd.org, freebsd-questions References: <5D6BA0FE-60E1-4C6B-906B-BB62A1AB9BE8@odo.in-berlin.de> From: Boris Samorodov Message-ID: <567719BE.9060309@passap.ru> Date: Mon, 21 Dec 2015 00:12:30 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <5D6BA0FE-60E1-4C6B-906B-BB62A1AB9BE8@odo.in-berlin.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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 21:12:36 -0000 20.12.15 19:50, Michael Grimm пишет: > But I am bit stuck in finding a way to start my jails in a > pre-defined order (e.g. first DNS, then mail, …). Well, I can achieve > that during boot time by using jail_list="dns mail …" 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. AFAIK ezjails start jails in reverse natural (by name) order and stops in natural order... So I used to name a jail to be started first as "zz..." one. HTH -- WBR, bsam