How to define the order of starting jails?
Boris Samorodov
bsam at passap.ru
Sun Dec 20 21:12:36 UTC 2015
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
More information about the freebsd-questions
mailing list