diff options
author | sbruno <sbruno@FreeBSD.org> | 2014-09-16 20:02:16 +0000 |
---|---|---|
committer | sbruno <sbruno@FreeBSD.org> | 2014-09-16 20:02:16 +0000 |
commit | 4fa78dd391a93e96782b57f095c6d19eff84f8b2 (patch) | |
tree | 1c4e057b9d9653b7339e7cd0925278b451ff571a /etc | |
parent | af43fec13d5ab250c84045b3bb6364df8fc666dd (diff) | |
download | FreeBSD-src-4fa78dd391a93e96782b57f095c6d19eff84f8b2.zip FreeBSD-src-4fa78dd391a93e96782b57f095c6d19eff84f8b2.tar.gz |
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
Diffstat (limited to 'etc')
-rw-r--r-- | etc/defaults/rc.conf | 2 | ||||
-rw-r--r-- | etc/rc.d/hv_kvpd | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index b24e869..5efe78b 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 78e4b74..284c7de 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" |