From c13a313284047bb43dc3fabbf540b3ce47d855f0 Mon Sep 17 00:00:00 2001 From: Sean Bruno Date: Tue, 16 Sep 2014 20:02:16 +0000 Subject: [PATCH] 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 --- etc/defaults/rc.conf | 2 ++ etc/rc.d/hv_kvpd | 1 + 2 files changed, 3 insertions(+) diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index b24e869cdd4..5efe78b9c16 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -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_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.* ## ### scripts to source rc_conf_files overrides safely. ## diff --git a/etc/rc.d/hv_kvpd b/etc/rc.d/hv_kvpd index 78e4b744732..284c7de8dff 100644 --- a/etc/rc.d/hv_kvpd +++ b/etc/rc.d/hv_kvpd @@ -8,6 +8,7 @@ . /etc/rc.subr name="hv_kvp_daemon" +rcvar="kp_kvpd_enable" command="/usr/sbin/${name}" required_dirs="/var/db/hyperv"