Hi all,

I have 2 silly questions and I think I know the answer.
I'd like to use the command line jail tool start and configure my jails;
however, I'd like to have defaults set up in a central place.

I thought I could put those defaults in /etc/jail.conf and then dynamically
create my jails with the cli tool.
However, if the jail create (or stop) is not explicitly listed in
jail.conf, the defaults are not applied.
If I add an empty configuration block, then the default values are applied.

Is this an intended behavior?

The second question is about not persistent jails.
Once all processes in the jail exits, the jail is automatically destroyed.
However, without invoking jail -r , there is no way (that I'm aware of) to
invoke a poststop script automatically.
Is there a workaround or a suggested way to have a callback/script invoked
when a jail disappear? (currently, I'm not happily considering a cronjob as
a solution)

Thanks in advance for the support!

Best regards.
pizzamig@
_______________________________________________
freebsd-jail@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"

Reply via email to