1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Add proper disable/enable hooks to the default scripts so that this is only

run when asked for by the user.  Right now, hv_kvpd is run on every boot.

Don't do that.

Add hv_kvpd_enable= for this script to be run.

MFC with 271493

MFC after:	2 weeks
Relnotes:	yes
This commit is contained in:
Sean Bruno 2014-09-16 20:02:16 +00:00
parent a06acfb7ab
commit c13a313284
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271688
2 changed files with 3 additions and 0 deletions

View File

@ -684,6 +684,8 @@ jail_enable="NO" # Set to NO to disable starting of any jails
jail_parallel_start="NO" # Start jails in the background jail_parallel_start="NO" # Start jails in the background
jail_list="" # Space separated list of names of jails jail_list="" # Space separated list of names of jails
hv_kvpd_enable="NO" # Start the Hyper-V key-value Pair Driver hv_kvp(4)
############################################################## ##############################################################
### Define source_rc_confs, the mechanism used by /etc/rc.* ## ### Define source_rc_confs, the mechanism used by /etc/rc.* ##
### scripts to source rc_conf_files overrides safely. ## ### scripts to source rc_conf_files overrides safely. ##

View File

@ -8,6 +8,7 @@
. /etc/rc.subr . /etc/rc.subr
name="hv_kvp_daemon" name="hv_kvp_daemon"
rcvar="kp_kvpd_enable"
command="/usr/sbin/${name}" command="/usr/sbin/${name}"
required_dirs="/var/db/hyperv" required_dirs="/var/db/hyperv"