How to define the order of starting jails?

Allan Jude allanjude at freebsd.org
Sun Dec 20 21:37:33 UTC 2015


On 2015-12-20 14:57, 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.
> 
> [Arrrgh, I never heard of "service" before (after so many years with FBSD) :-( What a shame ...]
> 
> Thanks and with kind regards,
> Michael
> 
> 
> 
> _______________________________________________
> freebsd-jail at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-jail
> To unsubscribe, send any mail to "freebsd-jail-unsubscribe at freebsd.org"
> 

'service' was not introduced until FreeBSD 8, iirc. It is mostly a
redhat thing, but is very handy.


Re: jail reverse order, there is a patch to address this, and a PR
somewhere I think:

https://reviews.freebsd.org/D2088

-- 
Allan Jude

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-jail/attachments/20151220/ca3db092/attachment.sig>


More information about the freebsd-jail mailing list