How to define the order of starting jails?

Michael Grimm trashcan at odo.in-berlin.de
Sun Dec 20 16:50:32 UTC 2015


Hi —

[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, …). 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.

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



More information about the freebsd-questions mailing list