Page MenuHomeFreeBSD

Make warning configurable for obsolete per-jail configuration
ClosedPublic

Authored by dteske on Aug 10 2016, 11:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 1 2024, 9:22 AM
Unknown Object (File)
Dec 31 2023, 8:25 PM
Unknown Object (File)
Dec 20 2023, 12:56 PM
Unknown Object (File)
Dec 15 2023, 1:31 AM
Unknown Object (File)
Dec 15 2023, 1:31 AM
Unknown Object (File)
Nov 15 2023, 2:10 PM
Unknown Object (File)
Oct 26 2023, 2:33 AM
Unknown Object (File)
Oct 13 2023, 9:33 PM
Subscribers

Details

Summary

Many shops still prefer rc.conf(5) based jail configuration(s). In-part
because they can use sysrc in conjunction with ssh and xargs to perform
en-masse changes in a large distribution with lots of jails spread over
many hosts on a LAN/WAN.

Provide a mechanism for disabling the warning eschewed by /etc/rc.d/jail
in said situation. If jail_confwarn="NO" is in rc.conf(5) (default "YES")
skip the warning that per-jail configurations are obsolete and that the
user should migrate to jail.conf(5).

Test Plan

Setup per-jail configurations in an rc.conf(5) style.
See https://svnweb.freebsd.org/base/head/share/examples/jails/README

% service jail restart

You'll get the following warning at the end...

/etc/rc.d/jail: WARNING: Per-jail configuration via jail_* variables \
is obsolete. Please consider migrating to /etc/jail.conf.

% sysrc jail_confwarn=NO
% service jail restart

The warning should no longer appear.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dteske retitled this revision from to Make warning configurable for obsolete per-jail configuration.
dteske updated this object.
dteske edited the test plan for this revision. (Show Details)
dteske added a reviewer: julian.
dteske added a subscriber: allanjude.
This revision is now accepted and ready to land.Oct 12 2016, 8:46 PM
This revision was automatically updated to reflect the committed changes.