Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2015 00:12:30 +0300
From:      Boris Samorodov <bsam@passap.ru>
To:        Michael Grimm <trashcan@odo.in-berlin.de>, freebsd-jail@freebsd.org, freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: How to define the order of starting jails?
Message-ID:  <567719BE.9060309@passap.ru>
In-Reply-To: <5D6BA0FE-60E1-4C6B-906B-BB62A1AB9BE8@odo.in-berlin.de>
References:  <5D6BA0FE-60E1-4C6B-906B-BB62A1AB9BE8@odo.in-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?567719BE.9060309>