svn commit: r340321 - in head/libexec/rc: . rc.d

Devin Teske dteske at FreeBSD.org
Sat Nov 10 22:44:04 UTC 2018


This also allows "sysrc -d jail_conf" to print "Configuration file for jail(8)"

Thanks.
-- 
Cheers,
Devin

> On Nov 10, 2018, at 6:11 AM, Eugene Grosbein <eugen at FreeBSD.org> wrote:
> 
> Author: eugen
> Date: Sat Nov 10 14:11:54 2018
> New Revision: 340321
> URL: https://svnweb.freebsd.org/changeset/base/340321
> 
> Log:
>  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
> 
> Modified:
>  head/libexec/rc/rc.conf
>  head/libexec/rc/rc.d/jail
> 
> Modified: head/libexec/rc/rc.conf
> ==============================================================================
> --- head/libexec/rc/rc.conf	Sat Nov 10 13:16:54 2018	(r340320)
> +++ head/libexec/rc/rc.conf	Sat Nov 10 14:11:54 2018	(r340321)
> @@ -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
> 
> Modified: head/libexec/rc/rc.d/jail
> ==============================================================================
> --- head/libexec/rc/rc.d/jail	Sat Nov 10 13:16:54 2018	(r340320)
> +++ head/libexec/rc/rc.d/jail	Sat Nov 10 14:11:54 2018	(r340321)
> @@ -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}
> 



More information about the svn-src-all mailing list