From owner-freebsd-jail@freebsd.org Sun Dec 20 21:37:33 2015 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A9861A4E545 for ; Sun, 20 Dec 2015 21:37:33 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) by mx1.freebsd.org (Postfix) with ESMTP id 7A2521434 for ; Sun, 20 Dec 2015 21:37:32 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (unknown [10.1.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id D29C4D022 for ; Sun, 20 Dec 2015 21:37:25 +0000 (UTC) Subject: Re: How to define the order of starting jails? To: freebsd-jail@freebsd.org References: <5D6BA0FE-60E1-4C6B-906B-BB62A1AB9BE8@odo.in-berlin.de> <1450639510.27618.8.camel@michaeleichorn.com> From: Allan Jude Message-ID: <56771F8D.4040004@freebsd.org> Date: Sun, 20 Dec 2015 16:37:17 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RM0BJ24XUHMD9ilTF82A6nhXEiDjlCIR7" X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2015 21:37:33 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --RM0BJ24XUHMD9ilTF82A6nhXEiDjlCIR7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2015-12-20 14:57, Michael Grimm wrote: > Michael B. Eichorn wrote >> On Sun, 2015-12-20 at 17:50 +0100, Michael Grimm wrote: >=20 >>> But I am bit stuck in finding a way to start my jails in a pre- >>> defined order (e.g. first DNS, then mail, =E2=80=A6). > [=E2=80=A6] >>> Thus, I might have overlooked it, is there a way to achieve my goal >>> using jail and jail.conf? >>> Or something else? >=20 >> 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? >=20 > Bingo! That made the trick! Thank you very, very much! Cool! That comma= nd 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. >=20 > [Arrrgh, I never heard of "service" before (after so many years with FB= SD) :-( What a shame ...] >=20 > Thanks and with kind regards, > Michael >=20 >=20 >=20 > _______________________________________________ > freebsd-jail@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org"= >=20 '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 --=20 Allan Jude --RM0BJ24XUHMD9ilTF82A6nhXEiDjlCIR7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJWdx+WAAoJEBmVNT4SmAt+B/AQAIWJYny0UCX3sdujwmupiTYV 21s4Kfc3JQQvFERHaSXf/rvmwxQkURlL1gzJ4SYIpC3pHB4wOs1ttDS+hP1NP3x6 t8yeUecqqfWa5YMIlQpVfhzUcQzXKmf5zQKnHStEZljExcHMIQaQkxHVCtSZbF7H N5UP9wBbNbI1JcDfErM1F7MTTwuT54yW27RHfoGH1Krw/0fm6QGzl6lTBXKIE97j E7PiCCVpDS1gE+J6PvMXwSb9hnHT1x6+S87BXnSY92EI9PBd8baWRxLgV1Kd+AZu I2+kK+l938mdk17bX4V97yqlP6oVmIzHiUoG4gIpOeqqs5kvtXJUhyUWaSjFHKe9 EBTC1oUjoN+fqFBWtyVoszykPOts8UvuZVoop6kuzPF0mROVKZHkcpBeqUXy1bep yPVzONB2uA2iK20m9AwTGKl0R3ORqPcsAk5QBLo9TiTx8TEd0j8fyogoA8YqDzyO Nvx4X/TKPSVDbtPpgrGGRbCkQLRF1jOsNOwPCembR76eP2rLUNVcidfCZM86Qmtd NQiBoigdwZTkikA2EzG/hpCMB8LfsVO5Y6mWhco9QTQGltyCH6gM4ElKva6RYQ+Z 7j5eLigFUbZiE1SFhgArtcVzGf98oAoM1ekRO3wwpm8Pby6ys2OxgFEp8WoABiIt ptmQNaJcjT1HOnGBYJwq =h4a4 -----END PGP SIGNATURE----- --RM0BJ24XUHMD9ilTF82A6nhXEiDjlCIR7--