Move definition of $jail_conf variable to /etc/defaults/rc.conf

from jail startup script so it can be successfully queried
with the command "sysrc jail_conf".

MFC after:	1 month
This commit is contained in:
Eugene Grosbein 2018-11-10 14:11:54 +00:00
parent 1e1a4743ba
commit 7b3c65ba1c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340321
2 changed files with 1 additions and 1 deletions

View File

@ -703,6 +703,7 @@ iovctl_files="" # Config files for iovctl(8)
### Jail Configuration (see rc.conf(5) manual page) ##########
##############################################################
jail_enable="NO" # Set to NO to disable starting of any jails
jail_conf="/etc/jail.conf" # Configuration file for jail(8)
jail_confwarn="YES" # Prevent warning about obsolete per-jail configuration
jail_parallel_start="NO" # Start jails in the background
jail_list="" # Space separated list of names of jails

View File

@ -21,7 +21,6 @@ config_cmd="jail_config"
console_cmd="jail_console"
status_cmd="jail_status"
extra_commands="config console status"
: ${jail_conf:=/etc/jail.conf}
: ${jail_program:=/usr/sbin/jail}
: ${jail_consolecmd:=/usr/bin/login -f root}
: ${jail_jexec:=/usr/sbin/jexec}