From nobody Sat Feb 19 09:28:24 2022 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 51ABA19E4A22 for ; Sat, 19 Feb 2022 09:28:37 +0000 (UTC) (envelope-from freebsd-questions@ymmv.dk) Received: from mail01.ymmv.dk (193-106-164-141.ip4.fiberby.net [193.106.164.141]) by mx1.freebsd.org (Postfix) with ESMTP id 4K13CS0T4cz3PST for ; Sat, 19 Feb 2022 09:28:35 +0000 (UTC) (envelope-from freebsd-questions@ymmv.dk) Received: from c02qx0.local (193-106-164-140.ip4.fiberby.net [193.106.164.140]) by mail01.ymmv.dk (Postfix) with ESMTPSA id 48FCF100C2F for ; Sat, 19 Feb 2022 10:28:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ymmv.dk; s=ymmv-mail-dkim; t=1645262907; bh=tLzuajZ+BwZyvxSH9erdNYD5MUu3TpYRMtXbo8VXNtw=; h=Date:From:To:Subject; b=FabbgzYUiatASkL+6741sXVCHgDDPdsMhng1ullKhmeocR90UuG0lPl7Qd2EMN24q fTnRdvDSQPLpN2RI8N1nk8/HL0TJ+1PQuLsCa/r4Qfl8IrGWp9J4E3diu06PIgSrEF xGRimzc+Ylw7eduSchEKtPJCDpVYw75YDvWPMiE9PEgkSQWtCM6F+juDqyYqZ/+rch oe0m+SfR9hfb1SuOaAK/EThkY0swC/6bV1F3gSzlg1JPNU48DHQQs3qwlhyiVsyZs1 BbRUwrdMWDGU+9tyKGG1Z1RF+m1BZnppUuPQITIHM1njmKquA/EDrwNL4cLBMVusf4 5vUntw1Ift+Mw== Date: Sat, 19 Feb 2022 10:28:24 +0100 From: Jon Clausen To: freebsd-questions@freebsd.org Subject: jail.$jailname.conf not directly in /etc/ ? Message-ID: <20220219092824.6qmzo33es3w73nj5@c02qx0.local> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4K13CS0T4cz3PST X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ymmv.dk header.s=ymmv-mail-dkim header.b=FabbgzYU; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd-questions@ymmv.dk has no SPF policy when checking 193.106.164.141) smtp.mailfrom=freebsd-questions@ymmv.dk X-Spamd-Result: default: False [-1.20 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[ymmv.dk:s=ymmv-mail-dkim]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; SUBJECT_HAS_CURRENCY(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[ymmv.dk:+]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_NA(0.00)[ymmv.dk]; MLMMJ_DEST(0.00)[freebsd-questions]; R_SPF_NA(0.00)[no SPF record]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:42541, ipnet:193.106.164.0/22, country:DK]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N Hi I'm reworking my jails setup, transitioning from ezjail to a "manual" setup which involves vnet and some homegrown scripts to set up zfs, nullfs overlays, epairs, etc. I'm trying to keep things segregated from the base system, which basically just means that I'm putting all of the datasets, config files and whatever under /usr/local/ somewhere. I'm making good progress, and am generally happy with everything except that I can't find a way to tell the "rc" system to look for the jail.$jailname.conf files someplace other than /etc/ Basically, I think it's sort of messy and and impractical to have a bunch of individual jail config files laying directly in /etc/. I would prefer to have them all under, say, /usr/local/etc/jails/ or even /usr/local/etc/. But if the files aren't in /etc/, then `service` cannot find them, and jail start/stop/whatever operations fail. I assume that the functionality is there, but the manpages for jail.conf, rc.conf aren't making it obvious. And from an (admittedly superficial) glance at /etc/rc.d/jail I don't really see how it would work with a "global" path for the config files, other than the hardcoded /etc/. What I was hoping for would be some global setting in /etc/rc.conf, /etc/jail.conf or somewhere... For this round of jails I am working on both 12.3-RELEASE and 13.0-RELEASE, (both for the host systems and the jails) so it would be nice to find something that works on both versions. Am I just being dense? I'm not having much luck finding any discussions about this anywhere online either. But I can't believe that this topic has never come up before, so I must assume that it's just me failing to compose my search terms correctly... Any ideas? br /jon -- YMMV