Re: jail.$jailname.conf not directly in /etc/ ?
- Reply: Doug Denault : "Re: jail.$jailname.conf not directly in /etc/ ?"
- In reply to: doug : "Re: jail.$jailname.conf not directly in /etc/ ?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Feb 2022 09:46:56 UTC
On 2022-02-19 18:46:24 (+0000), doug wrote: > > Any ideas? > > Ezjail and iocage put the jail configuration in different places. Perhaps > man jail is the answer: > > -f conf_file > Use configuration file conf_file instead of the default > /etc/jail.conf. Ah yes, that works when you (or some script) issue the jail command directly. But since I would like to create/setup/destroy/tear down the jails using my own scripts, but leave the start/stop operations to the system rc/service framwork, then using the -f flag is not an option, without modifying various bits of the system, as you point out below > I've never done this. I've used the jail command, ezjail, and iocage I've > always let the tool choose the location of the jail configuration. Moving it > will mean, at a minimum you will have to rewrite the scripts for: starting, > stoping, and console. You will also have to do something with /etc/rc.conf. yeah, nah... this is not how I'd like to proceed. This is much like building a bridge to cross the stream, to get the water. > If it were me, I'd let sleeping jail configs lie :) That's probably good advice, but I'm not quite done prodding the stuff just yet. I see one possible "half way", as I hinted at a minute ago in another reply... br /jon -- YMMV