summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2014-09-13 02:15:31 +0000
committerdelphij <delphij@FreeBSD.org>2014-09-13 02:15:31 +0000
commitedc7ea3a5d36632b4b34de01da7109a81c9b39cf (patch)
tree90bd58d5fdad38f917effa8d5ce8a33002b06656 /etc/rc.d
parent9bf7e49bfc27b3ec422834dbed634445004aa420 (diff)
downloadFreeBSD-src-edc7ea3a5d36632b4b34de01da7109a81c9b39cf.zip
FreeBSD-src-edc7ea3a5d36632b4b34de01da7109a81c9b39cf.tar.gz
Import HyperV Key-Value Pair (KVP) driver and daemon code by Microsoft,
many thanks for their continued support of FreeBSD. While I'm there, also implement a new build knob, WITHOUT_HYPERV to disable building and installing of the HyperV utilities when necessary. The HyperV utilities are only built for i386 and amd64 targets. This is a stable/10 candidate for inclusion with 10.1-RELEASE. Submitted by: Wei Hu <weh microsoft com> MFC after: 1 week
Diffstat (limited to 'etc/rc.d')
-rw-r--r--etc/rc.d/Makefile5
-rw-r--r--etc/rc.d/hv_kvpd15
2 files changed, 20 insertions, 0 deletions
diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile
index 64e83ac..d0897e3 100644
--- a/etc/rc.d/Makefile
+++ b/etc/rc.d/Makefile
@@ -57,6 +57,7 @@ FILES= DAEMON \
hostid \
hostid_save \
hostname \
+ ${_hv_kvpd} \
inetd \
initrandom \
ip6addrctl \
@@ -192,6 +193,10 @@ _ubthidhci= ubthidhci
_casperd= casperd
.endif
+.if ${MK_HYPERV} != "no"
+_hv_kvpd= hv_kvpd
+.endif
+
.if ${MK_UNBOUND} != "no"
_unbound= local_unbound
.endif
diff --git a/etc/rc.d/hv_kvpd b/etc/rc.d/hv_kvpd
new file mode 100644
index 0000000..78e4b74
--- /dev/null
+++ b/etc/rc.d/hv_kvpd
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: hv_kvpd
+
+. /etc/rc.subr
+
+name="hv_kvp_daemon"
+command="/usr/sbin/${name}"
+required_dirs="/var/db/hyperv"
+
+load_rc_config $name
+run_rc_command "$1"
OpenPOWER on IntegriCloud