How to define the order of starting jails?

Michael B. Eichorn ike at michaeleichorn.com
Sun Dec 20 21:28:28 UTC 2015


On Sun, 2015-12-20 at 20:57 +0100, Michael Grimm wrote:
> Michael B. Eichorn <ike at michaeleichorn.com> wrote
> > On Sun, 2015-12-20 at 17:50 +0100, Michael Grimm wrote:
> 
> > > But I am bit stuck in finding a way to start my jails in a pre-
> > > defined order (e.g. first DNS, then mail, …).
> […]
> > > Thus, I might have overlooked it, is there a way to achieve my
> > > goal
> > > using jail and jail.conf?
> > > Or something else?
> 
> > jail(8)'s '*' operates on everything without concern for rc.conf,
> > as
> > such jail_list is not respected. Perhaps try something tied to the
> > rc.d
> > system. Does `service jail restart` do what you are looking for?
> 
> Bingo! That made the trick! Thank you very, very much! Cool! That
> command is stopping and starting jails in the order as listed in
> "jail_list". Ok, it isn't stopping jails in the reverse order, but
> that is no big deal, though.

I think that this came up before and there was a patch sumbitted to
stop in the reverse order, It might be fixed in current. I don't really
remember the specifics and I cannot find it now, but something was done
about this before.

> [Arrrgh, I never heard of "service" before (after so many years with
> FBSD) :-( What a shame ...]

Always more to learn. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5729 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-jail/attachments/20151220/49f44ee9/attachment.bin>


More information about the freebsd-jail mailing list